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
• 18,520 points
818 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
• 52,350 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
• 10,620 points
2,555 views
+2 votes
1 answer
+2 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
• 58,020 points
2,739 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
• 52,350 points
923 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, 2019 in Docker by Ashish
17,879 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP