Skip to content

Instantly share code, notes, and snippets.

@xeonqq
Last active December 31, 2021 20:55
Show Gist options
  • Save xeonqq/488fdb28485cab338feaa3eff16d2d8e to your computer and use it in GitHub Desktop.
Save xeonqq/488fdb28485cab338feaa3eff16d2d8e to your computer and use it in GitHub Desktop.

enter in a Docker container already running with a new TTY

docker exec -it [container-id] bash

Docker: Copying files from Docker container to host

docker cp :/file/path/within/container /host/path/target

How to stop a docker container which started with --restart=always

sudo docker update --restart=no <container_id> to update --restart flag of the container.

Now you can stop the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment