Commit f0afa7e8 authored by Joshua Tauberer's avatar Joshua Tauberer

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

parent 89240a4f
...@@ -2,8 +2,16 @@ ...@@ -2,8 +2,16 @@
# see https://www.docker.io # see https://www.docker.io
########################### ###########################
# To build the image:
# sudo docker.io build -t box . # 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 FROM ubuntu:14.04
MAINTAINER Joshua Tauberer (http://razor.occams.info) MAINTAINER Joshua Tauberer (http://razor.occams.info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment