docker run
not working on my machine (Ubuntu 16.04).
It's likely docker run
did work, but since you did not specify any command to run, the container stopped working just after starting. With docker ps -a
you should see some exited ubuntu containers.
If you run the container as daemon (-d
) and tell it to wait for interactive input (-it
) it should stay running. Hence docker run -d -it ubuntu
should do what you want.
I did not understand the question correctly. What you want to do is bash connection maybe parameter to execute is incorrect
sudo docker run -t -i /bin/bash ubuntu
Go for it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With