sudo apt list | grep -i docker
curl https://registry-1.docker.io/v2/
sudo docker status
sudo docker stats
sudo docker ps
sudo docker ps -a
sudo docker start ebb9831a05fd
sudo docker ps
sudo docker stop ebb9831a05fd
sudo docker ps -a
sudo docker run -d -p 8088:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --privileged=true portainer/portainer
sudo docker pull redis
sudo docker ps -a
sudo docker images
sudo docker run -it -p 8080:8080 b8e65a4d736d
sudo docker ps
sudo docker exec -it f6acb4265d1b /bin/bash
sudo docker commit -a='pzw' -m 'add webapps' f6acb4265d1b tomcat02
sudo docker images
sudo docker ps
sudo docker stop $(sudo docker ps -i)
sudo docker ps i
sudo docker ps -i
docker ps --help
docker ps -q
sudo docker ps -q
sudo docker stop $(sudo docker ps -q)
sudo docker ps -a
sudo docker images
sudo docker run -it -v /home/ross/centos:/home centos /bin/bash
sudo docker ps
sudo docker ps -a
sudo docker start ce56abe7bb01
sudo docker start ce56abe7bb01 -it
sudo docker start --help
sudo docker attach ce56abe7bb01
sudo docker images
sudo docker pull msyql:5.7
sudo docker pull mysql:5.7
sudo docker ps -a
sudo docker run -d -P --name nginx01 -v /etc/nginx nginx
sudo docker ps -a
sudo docker rm 5ce2bb25c2df
sudo docker run -d -P --name nginx01 -v /etc/nginx nginx
sudo docker volume ls
sudo docker run -d -P --name nginx02 -v juming-nginx:/etc/nginx nginx
sudo docker volume ls
sudo docker ps
sudo docker inspect --help
sudo docker inspect 1ced062e9e1d
sudo docker volume inspect juming-nginx
cd /var/lib/docker/
sudo cd /var/lib/docker/
mkdir docker-test-volume
cd docker-test-volume/
vim dockerfile1
cat dockerfile1
sudo docker build -f dockerfile1 -t pzw/centos:1.0 .
sudo docker images
sudo docker -it 9ec777f9328b /bin/bash
sudo docker run -it 9ec777f9328b /bin/bash
sudo docker stop ac4cf8a31449
sudo docker ps
sudo docker ps -a
whereis docker
whereis docker -l
whereis docker -b
sudo docker images
sudo docker ps -a
sudo docker inspect e8303b349a70
sudo docker ps
sudo docker ps -q
sudo docker ps -qa
sudo docker rm -f $(sudo docker ps -qa)
sudo docker ps -a
sudo docker images
sudo docker images --help
sudo docker images -q
sudo docker images
sudo docker run -it --name docker01 pzw/centos:1.0
sudo docker ps
sudo docker run -it --name docker02 --volume-from docker01 pzw/centos:1.0
sudo docker run -it --name docker02 --volumes-from docker01 pzw/centos:1.0
sudo docker ps
sudo docker attach 224affc14ff2
sudo docker ps
sudo docker attach f04a756ced74
sudo gpasswd -a ${USER} docker
sudo chmod a+rw /var/run/docker.sock
sudo systemctl restart docker
docker ps
docker ps
docker ps -a
docker inspect f04a756ced74
docker run -it docker03 --volumes-from docker01 pzw/centos:1..0
docker run -it --name docker03 --volumes-from docker01 pzw/centos:1.0
cd docker-test-volume/
docker imes
docker images
docker run -it centos
vim dockerfile2
cat dockerfile2
docker build -f dockerfile2 -t mycentos:0.1 .
docker search centos
mv dockerfile2 dockerfilecentos7
vim dockerfilecentos7
docker build -f dockerfilecentos7 -t mycentos7 .
docker pull centos:centos7
vim dockerfilecentos7
docker build -f dockerfilecentos7 -t mycentos7 .
docker images
docker run -it mycentos7
docker history
docker images
docker history b6aef7422cf4
sudo docker ps -a
sudo docker run -d -P --name nginx01 -v /etc/nginx nginx
sudo docker ps -a
sudo docker rm 5ce2bb25c2df
sudo docker run -d -P --name nginx01 -v /etc/nginx nginx
sudo docker volume ls
sudo docker run -d -P --name nginx02 -v juming-nginx:/etc/nginx nginx
sudo docker volume ls
sudo docker ps
sudo docker inspect --help
sudo docker inspect 1ced062e9e1d
sudo docker volume inspect juming-nginx
cd /var/lib/docker/
sudo cd /var/lib/docker/
mkdir docker-test-volume
cd docker-test-volume/
vim dockerfile1
cat dockerfile1
sudo docker build -f dockerfile1 -t pzw/centos:1.0 .
sudo docker images
sudo docker -it 9ec777f9328b /bin/bash
sudo docker run -it 9ec777f9328b /bin/bash
sudo docker stop ac4cf8a31449
sudo docker ps
sudo docker ps -a
whereis docker
whereis docker -l
whereis docker -b
sudo docker images
sudo docker ps -a
sudo docker inspect e8303b349a70
sudo docker ps
sudo docker ps -q
sudo docker ps -qa
sudo docker rm -f $(sudo docker ps -qa)
sudo docker ps -a
sudo docker images
sudo docker images --help
sudo docker images -q
sudo docker images
sudo docker run -it --name docker01 pzw/centos:1.0
sudo docker ps
sudo docker run -it --name docker02 --volume-from docker01 pzw/centos:1.0
sudo docker run -it --name docker02 --volumes-from docker01 pzw/centos:1.0
sudo docker ps
sudo docker attach 224affc14ff2
sudo docker ps
sudo docker attach f04a756ced74
sudo gpasswd -a ${USER} docker
sudo chmod a+rw /var/run/docker.sock
sudo systemctl restart docker
docker ps
docker ps
docker ps -a
docker inspect f04a756ced74
docker run -it docker03 --volumes-from docker01 pzw/centos:1..0
docker run -it --name docker03 --volumes-from docker01 pzw/centos:1.0
cd docker-test-volume/
docker imes
docker images
docker run -it centos
vim dockerfile2
cat dockerfile2
docker build -f dockerfile2 -t mycentos:0.1 .
docker search centos
mv dockerfile2 dockerfilecentos7
vim dockerfilecentos7
docker build -f dockerfilecentos7 -t mycentos7 .
docker pull centos:centos7
vim dockerfilecentos7
docker build -f dockerfilecentos7 -t mycentos7 .
docker images
docker run -it mycentos7
docker history
docker images
docker history b6aef7422cf4
cd docker-test-volume/
cat dockerfile1
cat dockerfilecentos7
docker login --help
docker login -u rossseven -p
docker login -u rossseven
docker images
docker push pzw/diytomcat:1.0
docker push --help
docker --help
cd docker-test-volume/
docker ps
vim docker-cmd-test
docker build -f docker-cmd-test -t cmdtest .
docker images
docker run -it cmdtest
docker images
docker build -t diytomcat .
docker images
docker run -d -p 9090:8080 --name pzwtomcat
docker run diytomcat -d -p 9090:8080 --name pzwtomcat
docker run diytomcat -p 9090:8080 --name pzwtomcat /bin/bash
docker run diytomcat pzwtomcat /bin/bash
docker images
docker rm diytomcat
docker rmi diytomcat
docker ps
docker ps -a
docker rm f30e6d026703 5a35284d3098 6a3525083c7d
docker images
docker rmi diytomcat
docker build -t diytomcat .
docker ps
docker images
docker run -it --name pzwtomcat 4a68645b7068 /bin/bash
docker ps -a
docker rm 4779e0512359
docker images
docker run -it -p 8088:8080 --name pzwtomcat 4a68645b7068 /bin/bash
docker run --help
标签:ps,run,--,sudo,两百多,命令,images,docker
From: https://www.cnblogs.com/panzewen/p/18011405