CmdID

CmdID / Commands

container

Create and run Linux containers as lightweight virtual machines on macOS. tldr-pages

On macOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Start the container services (required before running containers)

container system startIdentify

Run a container from an image interactively and remove it after it exits

container run --rm --interactive --tty image shIdentify

Run a container in the background with a name and a published port

container run --detach --name container_name --publish 8080:80 imageIdentify

Execute a command inside a running container

container exec --interactive --tty container_name shIdentify

List all containers (running and stopped)

container [ls --allIdentify

Follow the logs of a container

container logs --follow container_nameIdentify

Build an image from a Dockerfile in a directory

container build --tag image_name path/to/directoryIdentify

Stop or delete a container

container stop container_nameIdentify