PS> cd \path\to\Dockerfile
PS> docker build .
View running processes
PS> docker ps
View all processes
PS> docker ps -a
Run an image in a new container daemonized
PS> docker run -d <image_name>
Run an image in interactive mode with the command powershell.exe
PS> docker run -i -t <image_name> powershell.exe
Run an image in interactive mode with the command powershell.exe
and link the ports.
PS> docker run -i -t --link <docker_container_name>:<docker_container_alias> <image_name> powershell.exe
Run an image with an ENTRYPOINT command in interactive mode with the command powershell.exe
PS> docker run --entrypoint powershell.exe -i -t <image_name>
Run an image in interactive mode with the command powershell.exe
mounting the host directory /var/app/current
to the container directory /usr/src/app
PS> docker run -i -t -v /var/app/current:/usr/src/app/ <image_name> powershell.exe
Run an image in interactive mode with the command powershell.exe
setting the environments variables FOO
and BAR
PS> docker run -i -t -e FOO=foo -e BAR=bar <image_name> powershell.exe