Ubuntu 19.10 installed and configured in Docker domestic source

Ubuntu 19.10 installed and configured in Docker domestic source

Docker installation

sudo apt-get install docker.io

After installed, in the course there may be some mistakes.

Sudo solve the following problems plus

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See ‘docker run --help’.

The following configuration issues to resolve domestic source docker.

Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/scrapinghub/splash/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Ascrapinghub%2Fsplash%3Apull&service=registry.docker.io: net/http: TLS handshake timeout

Docker domestic source configuration

# 增加或创建/etc/docker/daemon.json
vim /etc/docker/daemon.json

Increase in /etc/docker/daemon.json in the code, the following configuration Ali source

{
 "registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]
}
Published 25 original articles · won praise 23 · views 3004

Guess you like

Origin blog.csdn.net/weixin_42856871/article/details/104739564