Install docker ubuntu

 sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status docker Eksekusi tanpa sudo sudo usermod -aG docker ${USER} su - ${USER} groups sudo usermod -aG docker username

Set IP Static Ubuntu 22.04

$cd /etc/netplan

$sudo nano 00-installer-config.yaml

ganti : 

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens160:
      dhcp4: true
  version: 2

menjadi :

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens160:
        dhcp4: false
        addresses:
         - 10.0.0.9/23
        nameservers:
         addresses: [8.8.8.8, 8.8.4.4]
        routes:
         - to: 0.0.0.0/0
          via: 10.0.0.254
  version: 2

$sudo netplan apply

Comments

Popular posts from this blog

Install Maven pada Ubuntu 22.04

Install SSL

Install docker ubuntu