User Tools

Site Tools


rdm-dev:docker:it

This is an old revision of the document!


Docker containers are a bit like virtual machines sometimes. Namely, you can connect to a container and run shell scripts there.

the command for it is:

docker exec -it container-name bash

-it - this is very important! this means interactive terminal: your terminal becomes the containers' terminal.

bash is your UNIX shell. most minimal images include .sh, some more equipped ones also have bash. The advantage of bash over sh is: command history, better scripting, tab completion

rdm-dev/docker/it.1763472262.txt.gz · Last modified: 2025/11/18 13:24 by torkhov