Mocker CLI

June 16, 2026 · View on GitHub

Docker-compatible container management tool built on Apple Containerization framework (macOS 26+).

111 commands & subcommands — Docker CLI compatible (with Apple runtime limitations).

Commands marked [unsupported] accept Docker-compatible flags but are not yet functional. They will return an explicit error explaining the limitation.


Table of Contents


Container Lifecycle

mocker run

Create and run a new container.

mocker run [OPTIONS] IMAGE [COMMAND...]
FlagShortDescription
--nameAssign a name to the container
--detach-dRun container in background
--interactive-iKeep STDIN open even if not attached
--tty-tAllocate a pseudo-TTY
--env-eSet environment variables (KEY=VALUE)
--env-fileRead in a file of environment variables
--publish-pPublish container port (hostPort:containerPort)
--volume-vBind mount a volume (source:destination[:ro])
--networkConnect to a network
--label-lSet metadata labels (key=value)
--workdir-wWorking directory inside the container
--hostname-hContainer hostname
--restartRestart policy (no, always, on-failure, unless-stopped)
--user-uUsername or UID (format: name|uid[:group|gid])
--entrypointOverwrite the default ENTRYPOINT of the image
--platformSet platform (e.g. linux/amd64, linux/arm64)
--virtualizationExpose nested virtualization capabilities to the container
--kernelLinux kernel image to use for the container VM
--pullPull image before running (always|missing|never)
--initRun an init inside the container
--dnsSet custom DNS servers
--add-hostAdd a custom host-to-IP mapping (host:ip)
--mountAttach a filesystem mount to the container
--read-onlyMount the container's root filesystem as read only
--tmpfsMount a tmpfs directory
--shm-sizeSize of /dev/shm
--privilegedGive extended privileges to this container
--cap-addAdd Linux capabilities
--cap-dropDrop Linux capabilities
--stop-signalSignal to stop the container (default: SIGTERM)
--stop-timeoutTimeout (in seconds) to stop a container
--memory-mMemory limit (e.g. 512m, 1g)
--cpusNumber of CPUs
--rmAutomatically remove the container when it exits
--annotationAdd an annotation to the container
--attach-aAttach to STDIN, STDOUT or STDERR
--blkio-weightBlock IO (relative weight), 10-1000 or 0 to disable
--blkio-weight-deviceBlock IO weight (relative device weight)
--cgroup-parentOptional parent cgroup for the container
--cgroupnsCgroup namespace to use (host|private)
--cidfileWrite the container ID to the file
--cpu-shares-cCPU shares (relative weight)
--cpu-periodLimit CPU CFS period
--cpu-quotaLimit CPU CFS quota
--cpu-rt-periodLimit CPU real-time period in microseconds
--cpu-rt-runtimeLimit CPU real-time runtime in microseconds
--cpuset-cpusCPUs in which to allow execution (0-3, 0,1)
--cpuset-memsMEMs in which to allow execution (0-3, 0,1)
--detach-keysOverride the key sequence for detaching a container
--deviceAdd a host device to the container
--device-cgroup-ruleAdd a rule to the cgroup allowed devices list
--device-read-bpsLimit read rate (bytes/sec) from a device
--device-read-iopsLimit read rate (IO/sec) from a device
--device-write-bpsLimit write rate (bytes/sec) to a device
--device-write-iopsLimit write rate (IO/sec) to a device
--dns-optionSet DNS options
--dns-searchSet custom DNS search domains
--domainnameContainer NIS domain name
--exposeExpose a port or a range of ports
--gpusGPU devices to add to the container
--group-addAdd additional groups to join
--health-cmdCommand to run to check health
--health-intervalTime between running the check
--health-retriesConsecutive failures needed to report unhealthy
--health-start-intervalTime between running check during start period
--health-start-periodStart period for health-retries countdown
--health-timeoutMaximum time to allow one check to run
--ipIPv4 address (e.g., 172.30.100.104)
--ip6IPv6 address (e.g., 2001:db8::33)
--ipcIPC mode to use
--isolationContainer isolation technology
--label-fileRead in a line delimited file of labels
--linkAdd link to another container
--link-local-ipContainer IPv4/IPv6 link-local addresses
--log-driverLogging driver for the container
--log-optLog driver options
--mac-addressContainer MAC address
--memory-reservationMemory soft limit
--memory-swapSwap limit equal to memory plus swap
--memory-swappinessTune container memory swappiness (0 to 100)
--network-aliasAdd network-scoped alias for the container
--no-healthcheckDisable any container-specified HEALTHCHECK
--oom-kill-disableDisable OOM Killer
--oom-score-adjTune host's OOM preferences (-1000 to 1000)
--pidPID namespace to use
--pids-limitTune container pids limit (-1 for unlimited)
--publish-all-PPublish all exposed ports to random ports
--quiet-qSuppress the pull output
--runtimeRuntime to use for this container
--security-optSecurity Options
--sig-proxyProxy received signals to the process (default: true)
--storage-optStorage driver options for the container
--sysctlSysctl options
--ulimitUlimit options
--use-api-socketBind mount Docker API socket and set DOCKER_HOST
--usernsUser namespace to use
--utsUTS namespace to use
--volume-driverOptional volume driver for the container
--volumes-fromMount volumes from the specified container(s)

mocker create [unsupported]

Create a new container (without starting it). Same flags as run except no --detach-keys or --sig-proxy.

mocker create [OPTIONS] IMAGE [COMMAND...]

mocker start

Start one or more stopped containers.

mocker start [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--attach-aAttach STDOUT/STDERR and forward signals
--interactive-iAttach container's STDIN
--detach-keysOverride the key sequence for detaching

mocker stop

Stop one or more running containers.

mocker stop [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--timeout-tSeconds to wait before killing (default: 10)
--signal-sSignal to send to the container

mocker restart

Restart one or more containers.

mocker restart [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--timeout-tSeconds to wait before killing (default: 10)
--signal-sSignal to send to the container

mocker kill

Kill one or more running containers.

mocker kill [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--signal-sSignal to send (default: KILL)

mocker wait

Block until one or more containers stop, then print their exit codes.

mocker wait CONTAINER [CONTAINER...]

mocker rm

Remove one or more containers.

mocker rm [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--force-fForce remove running containers
--link-lRemove the specified link
--volumes-vRemove anonymous volumes associated with the container

mocker pause [unsupported]

Pause all processes within one or more containers.

mocker pause CONTAINER [CONTAINER...]

mocker unpause [unsupported]

Unpause all processes within one or more containers.

mocker unpause CONTAINER [CONTAINER...]

mocker update

Update configuration of one or more containers.

mocker update [OPTIONS] CONTAINER [CONTAINER...]
FlagShortDescription
--memory-mMemory limit (e.g. 512m, 1g)
--cpusNumber of CPUs
--cpu-shares-cCPU shares (relative weight)
--restartRestart policy to apply
--pids-limitTune container pids limit (-1 for unlimited)
--blkio-weightBlock IO (relative weight), 10-1000
--cpu-periodLimit CPU CFS period
--cpu-quotaLimit CPU CFS quota
--cpu-rt-periodLimit CPU real-time period in microseconds
--cpu-rt-runtimeLimit CPU real-time runtime in microseconds
--cpuset-cpusCPUs in which to allow execution
--cpuset-memsMEMs in which to allow execution
--memory-reservationMemory soft limit
--memory-swapSwap limit equal to memory plus swap

Container Management

mocker ps

List containers.

mocker ps [OPTIONS]
FlagShortDescription
--all-aShow all containers (default shows just running)
--quiet-qOnly display container IDs
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--no-truncDon't truncate output
--last-nShow n last created containers
--latest-lShow the latest created container
--size-sDisplay total file sizes

mocker exec

Execute a command in a running container.

mocker exec [OPTIONS] CONTAINER COMMAND [ARG...]
FlagShortDescription
--interactive-iKeep STDIN open even if not attached
--tty-tAllocate a pseudo-TTY
--env-eSet environment variables
--workdir-wWorking directory inside the container
--detach-dDetached mode: run command in the background
--detach-keysOverride the key sequence for detaching
--user-uUsername or UID
--env-fileRead in a file of environment variables
--privilegedGive extended privileges to the command

mocker logs

Fetch the logs of a container.

mocker logs [OPTIONS] CONTAINER
FlagShortDescription
--follow-fFollow log output
--tail-nNumber of lines to show from the end
--sinceShow logs since timestamp
--untilShow logs before a timestamp
--timestamps-tShow timestamps
--detailsShow extra details provided to logs

mocker inspect

Return low-level information on container or image.

mocker inspect [OPTIONS] NAME|ID [NAME|ID...]
FlagShortDescription
--format-fFormat output using a custom template
--typeOnly inspect objects of the given type (image or container)
--platformInspect a specific image platform (for example linux/amd64)
--size-sDisplay total file sizes if type is container

Image targets return Docker-compatible ImageInspect JSON arrays with PascalCase fields. mocker inspect --type image IMAGE and mocker image inspect IMAGE return the same image output.

mocker stats

Display a live stream of container resource usage statistics.

mocker stats [OPTIONS] [CONTAINER...]
FlagShortDescription
--no-streamDisable streaming stats and only pull the first result
--all-aShow all containers (default shows just running)
--formatFormat output using a custom template
--no-truncDo not truncate output

mocker attach

Attach local standard input, output, and error streams to a running container.

mocker attach [OPTIONS] CONTAINER
FlagShortDescription
--detach-keysOverride the key sequence for detaching
--no-stdinDo not attach STDIN
--sig-proxyProxy all received signals to the process (default: true)

mocker rename [unsupported]

Rename a container.

mocker rename CONTAINER NEW_NAME

mocker port

List port mappings or a specific mapping for the container.

mocker port CONTAINER [PRIVATE_PORT]

mocker top

Display the running processes of a container.

mocker top CONTAINER [PS_OPTIONS...]

mocker diff

Inspect changes to files or directories on a container's filesystem.

mocker diff CONTAINER

mocker cp

Copy files/folders between a container and the local filesystem.

mocker cp [OPTIONS] SOURCE DESTINATION
FlagShortDescription
--archive-aArchive mode (copy all uid/gid information)
--follow-link-LAlways follow symbol link in SRC_PATH
--quiet-qSuppress progress output during copy

mocker commit [unsupported]

Create a new image from a container's changes.

mocker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
FlagShortDescription
--author-aAuthor
--change-cApply Dockerfile instruction to the created image
--message-mCommit message
--no-pauseDisable pausing container during commit

mocker export [unsupported]

Export a container's filesystem as a tar archive.

mocker export [OPTIONS] CONTAINER
FlagShortDescription
--output-oWrite to a file, instead of STDOUT

Image Management

mocker build

Build an image from a Dockerfile.

mocker build [OPTIONS] PATH
FlagShortDescription
--tag-tName and optionally a tag (name:tag)
--file-fName of the Dockerfile (default: Dockerfile)
--no-cacheDo not use cache when building
--build-argSet build-time variables
--platformSet target platform for build
--targetSet the target build stage to build
--label-lSet metadata for an image
--pullAlways attempt to pull a newer version of the image
--quiet-qSuppress the build output
--networkSet the networking mode for RUN instructions
--add-hostAdd a custom host-to-IP mapping (host:ip)
--allowAllow extra privileged entitlement
--annotationAdd an annotation to the image
--attestAttestation parameters (type=sbom|provenance)
--build-contextAdditional build contexts (e.g., name=path)
--builderOverride the configured builder instance
--cache-fromExternal cache sources
--cache-toCache export destinations
--callSet method for evaluating build
--cgroup-parentSet the parent cgroup for RUN instructions
--checkShorthand for --call=check
--debug-DEnable debug logging
--iidfileWrite the image ID to the file
--loadShorthand for --output=type=docker
--metadata-fileWrite build result metadata to the file
--no-cache-filterDo not cache specified stages
--output-oOutput destination (format: type=local,dest=path)
--policySet policy for build
--progressSet type of progress output (auto, plain, tty, rawjson)
--provenanceShorthand for --attest=type=provenance
--pushShorthand for --output=type=registry
--sbomShorthand for --attest=type=sbom
--secretSecret to expose to the build
--shm-sizeSize of /dev/shm
--sshSSH agent socket or keys to expose to the build
--ulimitUlimit options

mocker images

List images.

mocker images [OPTIONS]
FlagShortDescription
--quiet-qOnly show image IDs
--all-aShow all images (default hides intermediate)
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--digestsShow digests
--no-truncDon't truncate output
--treeList images in tree format (experimental)

mocker pull

Download an image from a registry.

mocker pull [OPTIONS] IMAGE
FlagShortDescription
--all-tags-aDownload all tagged images in the repository
--platformSet platform if server is multi-platform capable
--quiet-qSuppress verbose output

mocker push

Upload an image to a registry.

mocker push [OPTIONS] IMAGE
FlagShortDescription
--all-tags-aPush all tags of an image to the repository
--platformPush a platform-specific manifest
--quiet-qSuppress verbose output

mocker tag

Create a tag that refers to a source image.

mocker tag SOURCE TARGET

mocker rmi

Remove one or more images.

mocker rmi [OPTIONS] IMAGE [IMAGE...]
FlagShortDescription
--force-fForce removal of the image
--no-pruneDo not delete untagged parents
--platformRemove only the given platform variant

mocker history

Show the history of an image.

mocker history [OPTIONS] IMAGE
FlagShortDescription
--formatFormat output using a custom template
--human-HPrint sizes and dates in human readable format (default: true)
--no-truncDon't truncate output
--quiet-qOnly show image IDs
--platformSet platform to show history for

mocker save

Save one or more images to a tar archive.

mocker save [OPTIONS] IMAGE [IMAGE...]
FlagShortDescription
--output-oWrite to a file, instead of STDOUT
--platformSet platform to save for

mocker load

Load an image from a tar archive or STDIN.

mocker load [OPTIONS]
FlagShortDescription
--input-iRead from tar archive file, instead of STDIN
--quiet-qSuppress the load output
--platformSet platform to load for

mocker import

Import the contents from a tarball to create a filesystem image.

mocker import [OPTIONS] SOURCE [REPOSITORY[:TAG]]
FlagShortDescription
--change-cApply Dockerfile instruction to the created image
--message-mSet commit message for imported image
--platformSet platform for imported image

Search Docker Hub for images.

mocker search [OPTIONS] TERM
FlagShortDescription
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--limitMax number of search results (default: 25)
--no-truncDon't truncate output

Registry & Authentication

mocker login [unsupported]

Authenticate to a registry.

mocker login [OPTIONS] [SERVER]
FlagShortDescription
--username-uUsername
--password-pPassword or Personal Access Token
--password-stdinTake the password from stdin

mocker logout [unsupported]

Log out from a registry.

mocker logout [SERVER]

mocker version

Show the Mocker version information.

mocker version [OPTIONS]
FlagShortDescription
--format-fFormat output using a custom template

Network Management

mocker network create

mocker network create [OPTIONS] NAME
FlagShortDescription
--driver-dDriver to manage the network (default: bridge)
--subnetSubnet in CIDR format
--gatewayGateway for the subnet
--attachableEnable manual container attachment
--aux-addressAuxiliary IPv4 or IPv6 addresses
--config-fromThe network from which to copy the configuration
--config-onlyCreate a configuration only network
--ingressCreate swarm routing-mesh network
--internalRestrict external access to the network
--ip-rangeAllocate container ip from a sub-range
--ipam-driverIP Address Management Driver
--ipam-optSet IPAM driver specific options
--ipv4Enable or disable IPv4
--ipv6Enable or disable IPv6
--labelSet metadata on a network
--opt-oSet driver specific options
--scopeControl the network's scope

mocker network ls

mocker network ls [OPTIONS]
FlagShortDescription
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--quiet-qOnly display network IDs
--no-truncDon't truncate output

mocker network rm

mocker network rm [OPTIONS] NETWORK [NETWORK...]
FlagShortDescription
--force-fDo not error if the network does not exist

mocker network inspect

mocker network inspect [OPTIONS] NAME
FlagShortDescription
--format-fFormat output using the given Go template
--verbose-vVerbose output for diagnostics

mocker network connect

mocker network connect [OPTIONS] NETWORK CONTAINER
FlagShortDescription
--aliasAdd network-scoped alias for the container
--driver-optDriver options for the network
--gw-priorityGateway priority for the container
--ipIPv4 address
--ip6IPv6 address
--linkAdd link to another container
--link-local-ipAdd a link-local address for the container

mocker network disconnect

mocker network disconnect [OPTIONS] NETWORK CONTAINER
FlagShortDescription
--force-fForce the container to disconnect

mocker network prune

mocker network prune [OPTIONS]
FlagShortDescription
--force-fDo not prompt for confirmation
--filterProvide filter values

Volume Management

mocker volume create

mocker volume create [OPTIONS] NAME
FlagShortDescription
--driver-dVolume driver (default: local)
--labelSet metadata for a volume
--opt-oSet driver specific options

mocker volume ls

mocker volume ls [OPTIONS]
FlagShortDescription
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--quiet-qOnly display volume names

mocker volume rm

mocker volume rm [OPTIONS] VOLUME [VOLUME...]
FlagShortDescription
--force-fForce the removal of one or more volumes

mocker volume inspect

mocker volume inspect [OPTIONS] NAME
FlagShortDescription
--format-fFormat output using a custom template

mocker volume prune

mocker volume prune [OPTIONS]
FlagShortDescription
--force-fDo not prompt for confirmation
--all-aPrune all unused volumes, not just anonymous ones
--filterProvide filter values

System

mocker system info

Display system-wide information.

mocker system info [OPTIONS]
FlagShortDescription
--format-fFormat output using a custom template

mocker system df

Show disk usage.

mocker system df [OPTIONS]
FlagShortDescription
--verbose-vShow detailed information on space usage
--formatFormat output using a custom template

mocker system events

Get real time events from the server.

mocker system events [OPTIONS]
FlagShortDescription
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template
--sinceShow all events created since timestamp
--untilStream events until this timestamp

mocker system prune

Remove unused data.

mocker system prune [OPTIONS]
FlagShortDescription
--all-aRemove all unused images, not just dangling ones
--volumesAlso prune volumes
--force-fDo not prompt for confirmation
--filterProvide filter values

Compose

All compose subcommands support these shared flags:

FlagShortDescription
--file-fCompose file path
--project-name-pProject name

mocker compose up

Create and start containers.

mocker compose up [OPTIONS] [SERVICE...]
FlagShortDescription
--detach-dRun containers in the background
--abort-on-container-exitStops all containers if any container was stopped
--abort-on-container-failureStops all containers if any container exited with failure
--always-recreate-depsRecreate dependent containers
--attachRestrict attaching to the specified services
--attach-dependenciesAutomatically attach to log output of dependent services
--buildBuild images before starting containers
--dry-runExecute command in dry run mode
--exit-code-fromReturn the exit code of the selected service container
--force-recreateRecreate containers even if configuration hasn't changed
--menuEnable interactive shortcuts
--no-attachDo not attach to the specified services
--no-buildDon't build an image, even if it's policy
--no-colorProduce monochrome output
--no-depsDon't start linked services
--no-log-prefixDon't print prefix in logs
--no-recreateIf containers already exist, don't recreate them
--no-startDon't start the services after creating them
--pullPull image before running (always|missing|never)
--quiet-buildSuppress build output
--quiet-pullPull without printing progress information
--remove-orphansRemove containers for services not in Compose file
--renew-anon-volumes-VRecreate anonymous volumes
--scaleScale SERVICE to NUM instances
--timeout-tUse this timeout in seconds for container shutdown
--timestampsAdd timestamps to log output
--wait-wWait for services to be running|healthy
--wait-timeoutMaximum duration to wait
--watchWatch source code and rebuild/refresh containers
--yes-yAssume yes to all prompts

mocker compose down

Stop and remove containers, networks.

mocker compose down [OPTIONS]
FlagShortDescription
--remove-orphansRemove containers for services not in Compose file
--volumes-vRemove named volumes
--timeout-tTimeout in seconds for stopping containers (default: 10)
--dry-runExecute command in dry run mode
--rmiRemove images used by services (all|local)

mocker compose ps

List containers for a compose project.

mocker compose ps [OPTIONS]
FlagShortDescription
--all-aShow all stopped containers
--dry-runExecute command in dry run mode
--filterFilter services by a property
--formatFormat output using a custom template
--no-truncDon't truncate output
--orphansInclude orphaned containers
--quiet-qOnly display IDs
--servicesDisplay the services
--statusFilter services by status

mocker compose logs

View output from containers.

mocker compose logs [OPTIONS] [SERVICE]
FlagShortDescription
--followFollow log output
--dry-runExecute command in dry run mode
--indexShow logs for a specific container index
--no-colorProduce monochrome output
--no-log-prefixDon't print prefix in logs
--sinceShow logs since timestamp
--tail-nNumber of lines to show from the end
--timestamps-tShow timestamps
--untilShow logs before a timestamp

mocker compose build

Build or rebuild services.

mocker compose build [OPTIONS] [SERVICE...]
FlagShortDescription
--no-cacheDo not use cache when building
--pullAlways attempt to pull a newer version
--build-argSet build-time variables
--quiet-qSuppress the build output
--builderSet builder to use
--checkCheck build configuration and exit
--dry-runExecute command in dry run mode
--memory-mSet memory limit for the build container
--printPrint equivalent bake file
--provenanceSet type of provenance attestation
--pushPush service images after build
--sbomSet type of SBOM attestation
--sshSet SSH authentications used during build
--with-dependenciesAlso build dependencies

mocker compose pull

Pull service images.

mocker compose pull [OPTIONS] [SERVICE...]
FlagShortDescription
--quiet-qSuppress pull output
--ignore-pull-failuresPull what it can and ignore failures
--dry-runExecute command in dry run mode
--ignore-buildableIgnore images that can be built
--include-depsAlso pull services declared as dependencies
--policyApply pull policy (missing|always)

mocker compose push

Push service images.

mocker compose push [OPTIONS] [SERVICE...]
FlagShortDescription
--ignore-push-failuresPush what it can and ignore failures
--dry-runExecute command in dry run mode
--include-depsAlso push images of services declared as dependencies
--quiet-qPush without printing progress information

mocker compose exec

Execute a command in a running service container.

mocker compose exec [OPTIONS] SERVICE COMMAND [ARG...]
FlagShortDescription
--detach-dDetached mode
-iKeep STDIN open
-tAllocate a pseudo-TTY
--env-eSet environment variables
--user-uUsername or UID
--workdir-wWorking directory inside the container
--indexIndex of the container if service is scaled
--dry-runExecute command in dry run mode
--no-tty-TDisable pseudo-TTY allocation
--privilegedGive extended privileges to the process

mocker compose run

Run a one-off command on a service.

mocker compose run [OPTIONS] SERVICE [COMMAND...]
FlagShortDescription
--detach-dRun container in background
--rmRemove container after run
--env-eSet environment variables
--user-uUsername or UID
--volume-vBind mount a volume
--publishPublish a container's port
--workdir-wWorking directory inside the container
--entrypointOverride the entrypoint
--no-depsDon't start linked services
--buildBuild images before starting containers
--cap-addAdd Linux capabilities
--cap-dropDrop Linux capabilities
--dry-runExecute command in dry run mode
--env-from-fileSet environment variables from file
--interactive-iKeep STDIN open even if not attached
--label-lAdd or override a label
--nameAssign a name to the container
--no-tty-TDisable pseudo-TTY allocation
--pullPull image before running (always|missing|never)
--quiet-qSuppress run output
--quiet-buildSuppress build output
--quiet-pullPull without printing progress information
--remove-orphansRemove containers for services not in Compose file
--service-portsRun command with all service's ports enabled
--tty-tAllocate a pseudo-TTY
--use-aliasesUse the service's network aliases
--publish-all-PPublish all exposed ports to random host ports

mocker compose stop

mocker compose stop [OPTIONS] [SERVICE...]
FlagShortDescription
--timeout-tSpecify a shutdown timeout in seconds (default: 10)
--dry-runExecute command in dry run mode

mocker compose start

mocker compose start [OPTIONS] [SERVICE...]
FlagShortDescription
--dry-runExecute command in dry run mode
--waitWait for services to be running|healthy
--wait-timeoutMaximum duration to wait

mocker compose restart

mocker compose restart [OPTIONS] [SERVICE]
FlagShortDescription
--dry-runExecute command in dry run mode
--no-depsDon't restart dependent services
--timeout-tSpecify a shutdown timeout in seconds

mocker compose rm

Remove stopped service containers.

mocker compose rm [OPTIONS] [SERVICE...]
FlagShortDescription
--forceDon't ask to confirm removal
--stop-sStop the containers, if required, before removing
--volumes-vRemove any anonymous volumes attached to containers
--dry-runExecute command in dry run mode

mocker compose kill

mocker compose kill [OPTIONS] [SERVICE]
FlagShortDescription
--dry-runExecute command in dry run mode
--remove-orphansRemove containers for services not in Compose file
--signal-sSIGNAL to send to the container

mocker compose config

Validate and view the Compose file.

mocker compose config [OPTIONS]
FlagShortDescription
--servicesPrint the service names, one per line
--volumesPrint the volume names, one per line
--quiet-qOnly validate the configuration
--dry-runExecute command in dry run mode
--environmentPrint the environment variables
--formatFormat the output (yaml|json)
--hashPrint the service config hash
--imagesPrint the image names, one per line
--lock-image-digestsPin image tags to digests
--modelsPrint the model names, one per line
--networksPrint the network names, one per line
--no-consistencyDon't check model consistency
--no-env-resolutionDon't resolve environment variables
--no-interpolateDon't interpolate environment variables
--no-normalizeDon't normalize compose model
--no-path-resolutionDon't resolve file paths
--output-oSave to file
--profilesPrint the profile names, one per line
--resolve-image-digestsPin image tags to digests
--variablesPrint the variable names, one per line

mocker compose create

Create containers for a service.

mocker compose create [OPTIONS] [SERVICE...]
FlagShortDescription
--buildBuild images before starting containers
--dry-runExecute command in dry run mode
--force-recreateRecreate containers even if configuration hasn't changed
--no-buildDon't build an image
--no-recreateIf containers already exist, don't recreate them
--pullPull image before running (always|missing|never)
--quiet-pullPull without printing progress information
--remove-orphansRemove containers for services not in Compose file
--scaleScale SERVICE to NUM instances
--yes-yAssume yes to all prompts

mocker compose images

mocker compose images [OPTIONS]
FlagShortDescription
--dry-runExecute command in dry run mode
--formatFormat the output (table|json)
--quiet-qOnly display IDs

mocker compose top

mocker compose top [OPTIONS] [SERVICE...]
FlagShortDescription
--dry-runExecute command in dry run mode

mocker compose port

mocker compose port [OPTIONS] SERVICE PRIVATE_PORT
FlagShortDescription
--protocolProtocol (tcp or udp)
--indexIndex of the container if service is scaled
--dry-runExecute command in dry run mode

mocker compose pause [unsupported]

mocker compose pause [OPTIONS] [SERVICE...]
FlagShortDescription
--dry-runExecute command in dry run mode

mocker compose unpause [unsupported]

mocker compose unpause [OPTIONS] [SERVICE...]
FlagShortDescription
--dry-runExecute command in dry run mode

mocker compose ls

List running compose projects.

mocker compose ls [OPTIONS]
FlagShortDescription
--all-aShow all stopped compose projects
--formatFormat output using a custom template
--quiet-qOnly display project names
--dry-runExecute command in dry run mode
--filterFilter output based on conditions provided

mocker compose cp

Copy files/folders between a service container and the local filesystem.

mocker compose cp [OPTIONS] SOURCE DESTINATION
FlagShortDescription
--indexIndex of the container if service is scaled (default: 1)
--all-aCopy to all containers of the service
--archiveArchive mode (copy all uid/gid information)
--dry-runExecute command in dry run mode
--follow-link-LAlways follow symbol link in source path

Other

mocker container

Management command grouping all container operations. Subcommands: attach, commit, cp, create, diff, exec, export, inspect, kill, logs, ls (default), pause, port, prune, rename, restart, rm, run, start, stats, stop, top, unpause, update, wait.

mocker image

Management command grouping all image operations. Subcommands: build, history, import, inspect, ls (default), prune, pull, push, rm, rmi, save, tag.

mocker container prune [unsupported]

Remove all stopped containers.

FlagShortDescription
--filterProvide filter values (e.g. "until=")
--force-fDo not prompt for confirmation

mocker image inspect

Display Docker-compatible detailed information on one or more images.

mocker image inspect [OPTIONS] IMAGE [IMAGE...]

Always returns a JSON array using Docker ImageInspect field names.

FlagShortDescription
--format-fFormat output using a custom template
--platformInspect a specific platform of the multi-platform image

mocker image prune [unsupported]

Remove unused images.

FlagShortDescription
--all-aRemove all unused images, not just dangling ones
--filterProvide filter values
--force-fDo not prompt for confirmation

mocker proxy

Internal proxy command for container networking.