Is it possible to start a shell session in a running container (without ssh)

0 votes

I tried running this command

docker run "id of running container" /bin/bash

but I got the following error

2013/07/27 20:00:24 Internal server error: 404 trying to fetch remote history for 27d757283842

if I want to run bash shell in a running container

do I have to run an SSH server in it and loggin via ssh ?

Jul 27, 2018 in Docker by Hannah
• 16,710 points
54 views

1 answer to this question.

+1 vote

use this

docker exec -it "id of running container" bash

Hope this helps…

answered Jul 27, 2018 by Kalgi
• 42,510 points

Related Questions In Docker

+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to continue running a docker container which is already exited?

Restart an existing container after you exited ...READ MORE

answered Jul 19, 2018 in Docker by Sophie may
• 9,870 points
134 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,940 points
232 views
0 votes
1 answer

Is it possible to start a shell session in a running container (without ssh)

use this docker exec -it "id of running ...READ MORE

answered Jul 25, 2018 in Docker by Kalgi
• 42,510 points
56 views
0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23 in Docker by Ashish
3,445 views