Skip to content

Instantly share code, notes, and snippets.

@quinn
Last active February 3, 2018 23:20
Show Gist options
  • Save quinn/a50b7868e549cab088fc to your computer and use it in GitHub Desktop.
Save quinn/a50b7868e549cab088fc to your computer and use it in GitHub Desktop.
Docker
nsenter --target $(docker inspect --format '{{.State.Pid}}' my_running_app) --mount --uts --ipc --net --pid
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
run -d --name manifest -v /var/run/docker.sock:/tmp/docker.sock -v /root/docker-manifest:/usr/src/app -t ruby:latest bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment