docker常見問題

mac上docker常見問題docker

一、the Docker daemon at tcp://192.168.0.107:2375. Is the docker daemon runningjson

unset DOCKER_HOSTubuntu

unset DOCKER_TLS_VERIFYbash

unset DOCKER_TLS_PATHtcp

docker psspa

二、修改國內鏡像地址rest

2.一、mac上修改------------------------------code

修改~/.docker/daemon.json文件,在後面加入:class

{
"registry-mirrors": ["https://plapxez2.mirror.aliyuncs.com"],
"insecure-registries":["docker.codedev.top:88"]
}file

2.二、ubuntu上修改------------------------------

mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://plapxez2.mirror.aliyuncs.com"],
"insecure-registries":["docker.codedev.top:88"]
}
EOF
systemctl daemon-reload
systemctl restart docker
ufw disable

三、mac上profile位置

Users/mark/.bash_profile

修改:open -e .bash_profile

生效:source .bash_profile

相關文章
相關標籤/搜索