Reputation: 31
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.
Upvotes: 0
Views: 2448
Reputation: 33
docker start <container-id>
docker exec -it -d <container-id> bash
or docker exec -d <container-id> bash
docker exec -it <container-id> bash
exit
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:
Upvotes: 1