container
Create and run Linux containers as lightweight virtual machines on macOS. tldr-pages
On macOS
macOS
Start the container services (required before running containers)
container system startIdentifyRun a container from an image interactively and remove it after it exits
container run --rm --interactive --tty image shIdentifyRun a container in the background with a name and a published port
container run --detach --name container_name --publish 8080:80 imageIdentifyExecute a command inside a running container
container exec --interactive --tty container_name shIdentifyList all containers (running and stopped)
container [ls --allIdentifyFollow the logs of a container
container logs --follow container_nameIdentifyBuild an image from a Dockerfile in a directory
container build --tag image_name path/to/directoryIdentifyStop or delete a container
container stop container_nameIdentify