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

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!