Docker Up & Running
Docker:
Docker allows you to package applications and infrastructure into self-contained silos called containers that can distributed and run.
- Registry is an application that hosts repositories
- Repository stores docker images
- Images are definitions from which containers can be created
- Container is a running instance of an image
To Build images you can start with an existing docker image make changes and commit the changes to a new image. Alternatively you can create a DockerFile and build the image from the definition contained in the DockerFile .
Windows currently does not support docker so you will have to use boot2docker to interact with docker on a Windows based PC. boot2docker leverages a VirtualBox base Linux VM.
SSH to boot2docker VM:
$ boot2docker ssh
Interact with docker from boot2docker :
$ docker [COMMAND] [OPTIONS]
docker :
$ docker [COMMAND] [OPTIONS]
Run Asp.Net vNext container.
docker run -it -p 8080:5004 centos_aspnet_vnext bash -c "source ~/.dnx/dnvm/dnvm.sh && dnx usr/local/lib/Home/samples/latest/HelloMvc kestrel"
docker run -d -p 5004:5004 centos_aspnet_vnext
Comments
Post a Comment