How to SSH to docker container running in Ubuntu Linux
I have a Linux server installed Ubuntu 18, Now I want from this sever access to a docker container is running in this server to execute some command but I don't know how to ssh to docker container?
Thank you for any suggestion.
To access to docker container we have a syntax as below:
docker exec -it <container name> /bin/bash
<Container name>you can run
docker pscommand to list all docker containers in your server, you will see NAMES column.Sandeep Kumar Dec 05 2020