Created
March 29, 2016 05:12
-
-
Save fonylew/9c859393e59a4845bad1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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