After docker exits a container, how to enter the container again?
滿天的星座
滿天的星座 2017-05-16 13:17:41
0
3
721

I ran docker run -it and installed openjdk, and then I exited. How can I enter the original container again?

滿天的星座
滿天的星座

reply all(3)
阿神
docker exec -it {dockerId} /bin/bash
左手右手慢动作

First use docker ps -a to find the corresponding stopped container id, and then use docker start -ia <containerid> to start the container

曾经蜡笔没有小新

docker attach your_container_name

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!