C菜鸟教学

docker command

1
2
3
4
5
docker-compose up -d 

docker-compose down

docker-compose ps 

screen 后台task

1
2
3
4
screen -S my_docker_session
cd /path/
#ctr+A D to exit
screen -r my_docker_session

镜像源更换以及加速

1
2
3
4
5
6
7
8
9
10
11
12
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

自建Docker镜像加速服务

moments

文件快递柜

docker-compose

mailbox

https://www.cnblogs.com/codelove/tag/Docker/

https://leezhian.com/web/base/docker_deploy