11.0

Table Of Contents
Command Description
vctl run [OPTIONS] IMAGE [COMMAND] [ARGUMENTS...] Runs a new container from a container image.
Note Ensure the following when you use the --volume option:
n Provide the folder paths for both the host and the container.
n Specify paths to the folder. The --volume doesn't support path to
files.
n Use absolute path. Relative paths are not supported.
n Don't specify the access permission (ro, rw) of the mounted
volume because it is not supported.
n If VOLUME instructions are provided in the Dockerfile of the
container image, use --volume option to mount a folder from host
to the container for the container to run.
Note Ensure the following when you use the --publish option:
n The --publish option is only available with Fusion Pro.
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 start [OPTIONS] CONTAINER Starts a created or stopped container.
vctl stop [OPTIONS] CONTAINER Stops the container.
The vctl Commands to Manage the CRX VM Resource
Command Description
vctl execvm [OPTIONS] (vmx|-c=CONTAINER) COMMAND [ARGUMENTS...] Runs commands from inside a running virtual machine
that hosts the container.
Examples of vctl Commands
The command-line examples that follow work on VMware Fusion.
Commands Related to Image
n When you build a new image, to pull the base image from a private Docker registry successfully, use
the --credential option to pass a JSON file that stores credentials to vctl build command for
registry authentication. For example:
a Encode your Docker registry username and password in base64 with the following command:
echo -n USER:PASSWORD | base64
Using VMware Fusion
VMware, Inc. 180