Skip to content

Instantly share code, notes, and snippets.

@matheusmota
Created May 13, 2020 20:12
Show Gist options
  • Save matheusmota/71e88426f92adeb0017842e88b32178c to your computer and use it in GitHub Desktop.
Save matheusmota/71e88426f92adeb0017842e88b32178c to your computer and use it in GitHub Desktop.

Installing docker and docker-compose

sudo apt install docker-compose

Create a Docker group.

sudo groupadd docker

Add your user to the docker group.

sudo usermod -aG docker $USER

Using registries (Dockerhub, etc.)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment