docker practice

container docker
cent os 7
may not support 2.4 play
docker run -d \
  -v /path/to/your/play/app:/app:rw \
  -p 80:9000 \

install docker on mac

for linux users;

docker-machine for creating docker vm in mac
docker toolbox

docker quickstart terminal
docker is configured to use the default machine with IP
For help getting started, check out the docs at


docker ps - Lists containers.
docker logs - Shows us the standard output of a container.
docker stop - Stops running containers.

docker run -d -P
 Let’s start with a docker run command.
$ docker run -d -P training/webapp python
Let’s review what our command did. We’ve specified two flags: -d and -P
running container using the docker ps command.
$ docker ps -l
CONTAINER ID  IMAGE                   COMMAND       CREATED        STATUS        PORTS                    NAMES
bc533791f3f5  training/webapp:latest  python 5 seconds ago  Up

No comments:

Post a Comment