Howto:Docker scenery toolchain: Difference between revisions

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

edits