Skip to content

Instantly share code, notes, and snippets.

@fonylew
Created March 29, 2016 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonylew/9c859393e59a4845bad1 to your computer and use it in GitHub Desktop.
Save fonylew/9c859393e59a4845bad1 to your computer and use it in GitHub Desktop.
#http://stackoverflow.com/questions/19897743/exposing-a-port-on-a-live-docker-container
sudo docker ps
sudo docker commit <containerid> <foo/live>
sudo docker run -i -p 22 -p 8000:80 -m /data:/data -t <foo/live> /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment