简体   繁体   中英

Not able to exit from interactive mode of docker start

I started a container using the below command connecting to linux server using putty.

docker start -i <containerid>

but I am not able exit from it and get back to command line, without closing the putty.

你可以从你的终端做:

  • exit
  • ctrl+C
  • ctrl+D
  • Start the container docker start <container-id>
  • Set the containers to run in daemon mode docker exec -it -d <container-id> bash or docker exec -d <container-id> bash
  • Enter the running container docker exec -it <container-id> bash
  • Exit the interactive mode by typing exit
  • Type docker ps -a , the container will still be running, to stop it use docker stop <container-id>

Example to quit interactive mode and keep the container alive:

样本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM