This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PS: If running Linux containers on Windows, the command shell must be running as admin | |
# Attach to the default shell of a running container | |
sudo docker attach 665b4a1e17b6 | |
# Access a shell and run custom commands inside a container | |
# 665b4a1e17b6 is the ID of the container obtained from docker ps | |
sudo docker exec -i -t 665b4a1e17b6 /bin/bash |