# for all running contianers
docker ps
# for all containers
docker ps -a
docker rm $(docker ps -aq)
docker stop container_name
docker stop $(docker ps -aq)
docker stop $(docker ps -aq) & docker rm $(docker ps -aq)
# for stopped container
docker start container_name
# for running container
docker restart container_name
# for iterative runing container
docker attach container_name
# for all container
docker exec -it container_name /bin/bash
# export
# https://www.cnblogs.com/yanling-coder/p/11715534.html
docker export b91d9ad83efa > tomcat80824.tar
# import
docker import tomcat80824.tar
docker tag 880f tomcat80824:1.0