sudo apt install docker-compose
Create a Docker group.
sudo groupadd docker
Add your user to the docker group.
sudo usermod -aG docker $USER
Install both gnupg2
and pass
libs for solving a known authentication issue:
sudo apt install gnupg2 pass
Restart docker daemon
sudo /etc/init.d/docker restart
Optional:
Create or modify /etc/docker/daemon.json
on the client machine with the following content:
Alternatively, if you experience problems with the DockerHub registry, use the following json:
{
"insecure-registries":["http://...","http://registry.hub.docker.com"]
}
Login to registries:
docker login <url>