docker
- docker engine安装
- docker官方文档
- docker administrator guide
- docker user guide
- docker proxy
1
2
3
4
5
6
7$ cat /etc/systemd/system/docker.service.d/http-proxy.conf
Environment="HTTP_PROXY=http://proxy.example.com:80/" HTTPS_PROXY=http://proxy.example.com:80/
Environment="NO_PROXY=localhost,127.0.0.0/8,docker-registry.somecorporation.com"
$ systemctl daemon-reload
$ systemctl show --property Environment docker
Environment=HTTP_PROXY=http://proxy.example.com:80/
$ systemctl restart docker
- docker command
1
2
3
4
5
6
7
8
9
10
11
12
13docker version/info/login
docker run
docker run -i -t
docker pull/search/commit/push
docker start/stop/kill/restart
docker ps 正在运行的docker
docker ps -a 所有的docker
docker ps -l 最近运行的docker
docker rm 删除docker
docker images 列出image
docker rmi 删除image
docker rmi `docker images -f dangling=true -q`
docker save/load- 查看docker内ip地址
1
2docker network inspect bridge
docker inspect ID/Name
- 查看docker内ip地址
- 中文docker
- docker-compose
- docker-compose command
- docker-compose install
1
2curl -L https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose