0%
日志类
1 2
| docker logs -f <container> journalctl
|
容器类
1 2 3 4 5 6 7 8
| docker ps docker ps -a -q docker ps top docker pull/commit/tag/push/diff/attach docker create/build/run/rm docker start/stop/pause docker exec -it {{containerName or containerID}} bash docker cp
|
镜像
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| docker images
docker images ubuntu
docker history [id]
docker rmi
docker rmi `docker images -a -q`
docker save
docker save -o ubuntu14.04.tar ubuntu:14.04
docker load
docker load -i ubuntu14.04.tar docker load < /home/save.tar
docker build -t <镜像名> <Dockerfile路径> docker build -t xx/gitlab .
|