3 ms·
Here comes! Getting shell in a new copy of container: docker run -it --entrypoint=/bin/sh ${container} Running shell inside a running container: docker exec
by nine_k 7y ago
Here comes!
Getting shell in a new copy of container:
docker run -it --entrypoint=/bin/sh ${container}
Running shell inside a running container:
docker exec -it ${container} /bin/sh
Running sshd inside a container to let you peek inside is bad taste, and bad security, too.