Docker
Docker CLI API Reference
Docker command-line interface for building, shipping and running containers and images.
By EZ4Code Team
Commands
Top-level docker subcommands for container and image lifecycle.
docker run [options] image [command] [args...]Creates a new container from an image and starts it, running the given command.
Returns: ContainerID
docker build [options] path | URLBuilds an image from a Dockerfile in the given path or URL.
Returns: void
docker pull [options] name[:tag]Downloads an image from a registry and stores it locally.
Returns: void
docker push [options] name[:tag]Uploads a local image to a registry.
Returns: void
docker ps [options]Lists containers. By default only running containers are shown.
Returns: void
docker exec [options] container command [args...]Runs a new command inside a running container.
Returns: void
docker logs [options] containerPrints the stdout/stderr logs of a container.
Returns: void