docker交互式shell
docker exec -it [containerid/name] [shell]
#Example
docker exec -it fa80b69 bash
#if its an apline container use "sh" instead of "bash"
docker启动容器
$ docker start my_container
docker在容器上运行命令
sudo docker exec -it <container name> <command>
docker attach
docker attach [OPTIONS] CONTAINER
docker如何运行现有容器
docker start <container-name/ID>