docker: add some example run commands for debugging a container or having it take over host ports

This commit is contained in:
Joshua Tauberer 2014-05-01 22:29:00 -04:00
parent 89240a4fab
commit f0afa7e8dc
1 changed files with 9 additions and 1 deletions

View File

@ -2,8 +2,16 @@
# see https://www.docker.io
###########################
# To build the image:
# sudo docker.io build -t box .
# sudo docker.io run -i -t box
# To run a container for testing (with a command prompt and no publicly exposed ports):
# sudo docker.io run -i -t -P box
# Or to run in the background and expose all of the ports so that the *host* acts as a Mail-in-a-Box:
# (the SSH port is only available locally, but other ports are exposed publicly and must be available
# otherwise the container won't start)
# sudo docker.io run -d -p 22 -p 25:25 -p 53:53/udp -p 443:443 -p 587:587 -p 993:993 box
FROM ubuntu:14.04
MAINTAINER Joshua Tauberer (http://razor.occams.info)