cara menginstal docker ubuntu
sudo apt-get update
sudo apt-get upgrade
sudo apt install docker.io
systemctl start docker
systemctl enable docker
docker --version
Awful Ant
sudo apt-get update
sudo apt-get upgrade
sudo apt install docker.io
systemctl start docker
systemctl enable docker
docker --version
systemctl start docker.service
#(OR)
systemctl start docker
# it will start docker
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
<output truncated>
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh && sudo sh /tmp/get-docker.sh && \
sudo usermod -aG docker $USER && newgrp docker && \
newgrp docker && \
sudo curl -L "github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose && \
sudo chmod +x /usr/bin/docker-compose
sudo apt install docker.io docker-compose acl
sudo setfacl --modify user:$USER:rw /var/run/docker.sock
sudo usermod -aG docker $USER
docker run hello-world # Test if it works
Docker never works the first try :(
try this:
Uninstall Docker Desktop
Restart computer
Install Docker Desktop (make sure to install it with admin rights)