docker 安装
1 | yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine |
docker-compose 安装
1 | ### 直接安装 |
其他
查看容器的挂载目录
1
docker inspect 6a11b0b8291a | grep Mounts -A 20
阿里云 docker 镜像加速器
1
2
3
4
5
6
7
8
9
10
11
12https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
# 配置
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://am3rvw31.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker启动/关闭容器
1
2
3docker-composer up -d
docker-composer down