Howto:Docker scenery toolchain: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 30: Line 30:


<syntaxhighlight lang="shell">
<syntaxhighlight lang="shell">
docker container ls -a
docker container ls -a   # List all containers, even those stopped
docker container start <container_name>
docker container start <container_name>   # Start and existing container
docker container cp <source_file> <container_name>:<destination>
docker container cp <source_file> <container_name>:<destination> # Copy a file into the cotnainer
docker container exec -i -t <container_name> /bin/bash
docker container exec -i -t <container_name> /bin/bash   # Run a bash shell, and connect to it.
</syntaxhighlight>
</syntaxhighlight>


Now, when you exit, the container will continue running
Now, when you exit, the container will continue running

Navigation menu