Docker常用命令及使用
以下是在 centos 系统下执行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce
vi /etc/docker/daemon.json
{ "registry-mirrors" : [ "https://xxxx.mirror.aliyuncs.com" ], "insecure-registries" : [ "registry.mirrors.aliyuncs.com" ], "debug" : true, "experimental" : true } sudo systemctl start docker
|