The command-line examples that follow work on VMware Fusion.
■
| |||
■
|
List all containers, including the running containers and stopped containers. | ||
■
|
Run a container in detached mode using the nginx image, which is the same as docker.io/library/nginx:latest. | ||
■
|
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 | ||
■
|
Run multiple containers and enable discovery and communication with each other.
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 | ||
■
|
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 |
■
|
| ||||
■
|
Execute a command within a CRX VM.
|