12.0

Table Of Contents
c Build the new image whose base image is in a private Docker registry, by passing the
JSON file to vctl build command:
vctl build --file Dockerfile --tag docker.io/mynamespace/myrepo:1.0 --
credential config.json .
Commands Related to Container
n List running containers.
vctl ps
n List all containers, including the running containers and stopped containers.
vctl ps --all
n Run a container in detached mode using the nginx image, which is the same as docker.io/
library/nginx:latest.
vctl run --name myContainer -d nginx
n Run a container using the --publish option and the fluentd image, here fluentd is
equivalent to docker.io/library/fluentd:latest.
vctl run --name myContainer --publish 24224:24224/udp --publish 24224:24224
fluentd
n Run multiple containers and enable discovery and communication with each other.
n The vctl utility doesn't have a subnet or a link feature to connect multiple containers to a
subnet.
To enable communication between multiple containers, start the container with the --
publish option. This binds the container port to the host port so that the service provided
by the container is accessible from the outside.
vctl run --name mydb -m 2048 -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 mysql
vctl run --name mymatomo -m 4096 -p 8080:80 -e
MATOMO_DATABASE_HOST=<Host_IP>:3306 matomo
n Run a container using the --volume option and the bonita image, here bonita is equivalent to
docker.io/library/bonita:latest.
vctl run --name myContainer -p 8080:8080 --volume ~/Documents/container:/opt/
bonita bonita
Commands Related to CRX VM
n Get shell access to a CRX VM.
n By specifying the container hosted by the CRX VM.
vctl execvm --sh -c myContainer
Using VMware Fusion
VMware, Inc. 187