docker network rm

network rm Usage: docker network rm [OPTIONS] NETWORK [NETWORK...] Deletes one or more networks --help Print usage Removes one or more networks by name or identifier. To remove a network, you must first disconnect any containers connected to it. To remove the network named ‘my-network’: $ docker network rm my-network To delete multiple networks in a single docker network rm command, provide multiple network names or ids. The following example deletes a network with id 3695c

Remote API v1.22

Docker Remote API v1.22 1. Brief introduction The Remote API has replaced rcli. The daemon listens on unix:///var/run/docker.sock but you can Bind Docker to another host/port or a Unix socket. The API tends to be REST. However, for some complex commands, like attach or pull, the HTTP connection is hijacked to transport stdout, stdin and stderr. When the client API version is newer than the daemon’s, these calls return an HTTP 400 Bad Request error message. 2. Endpoints 2.1 Containers List con

Format command and log output

Formatting reference Docker uses Go templates to allow users manipulate the output format of certain commands and log drivers. Each command a driver provides a detailed list of elements they support in their templates: Docker Images formatting Docker Inspect formatting Docker Log Tag formatting Docker Network Inspect formatting Docker PS formatting Docker Volume Inspect formatting Docker Version formatting Template functions Docker provides a set of basic functions to manipulate template elem

docker push

push Usage: docker push [OPTIONS] NAME[:TAG] Push an image or a repository to the registry --disable-content-trust=true Skip image signing --help Print usage Use docker push to share your images to the Docker Hub registry or to a self-hosted one. Killing the docker push process, for example by pressing CTRL-c while it is running in a terminal, will terminate the push operation. Registry credentials are managed by docker login.

Amazon Web Services

Amazon Web Services Create machines on Amazon Web Services. To create machines on Amazon Web Services, you must supply two parameters: the AWS Access Key ID and the AWS Secret Access Key. Configuring credentials Before using the amazonec2 driver, ensure that you’ve configured credentials. AWS credential file One way to configure credentials is to use the standard credential file for Amazon AWS ~/.aws/credentials file, which might look like: [default] aws_access_key_id = AKID1234567890 aws_secre

docker-compose run

run Usage: run [options] [-e KEY=VAL...] SERVICE [COMMAND] [ARGS...] Options: -d Detached mode: Run container in the background, print new container name. --name NAME Assign a name to the container --entrypoint CMD Override the entrypoint of the image. -e KEY=VAL Set an environment variable (can be used multiple times) -u, --user="" Run as specified username or uid --no-deps Don't start linked services.

Docker Swarm

Docker Swarm Docker Swarm overview How to get Docker Swarm Evaluate Swarm in a sandbox Plan for Swarm in production Build a Swarm cluster for production Try Swarm at scale Overview Swarm with TLS Configure Docker Swarm for TLS Docker Swarm Discovery High availability in Docker Swarm Swarm and container networks Advanced Scheduling Provision a Swarm cluster with Docker Machine Docker Swarm API

docker commit

commit Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] Create a new image from a container's changes -a, --author="" Author (e.g., "John Hannibal Smith <hannibal@a-team.com>") -c, --change=[] Apply specified Dockerfile instructions while committing the image --help Print usage -m, --message="" Commit message -p, --pause=true Pause container during commit It can be useful to commit a container’s file changes or settings into a new image.

FAQ

Frequently Asked Questions (FAQ) If you don’t see your question here, feel free to submit new ones to docs@docker.com. Or, you can fork the repo and contribute them yourself by editing the documentation sources. How much does Engine cost? Docker Engine is 100% free. It is open source, so you can use it without paying. What open source license are you using? We are using the Apache License Version 2.0, see it here: https://github.com/docker/docker/blob/master/LICENSE Does Docker run on Mac OS X

docker-machine upgrade

upgrade Upgrade a machine to the latest version of Docker. How this upgrade happens depends on the underlying distribution used on the created instance. For example, if the machine uses Ubuntu as the underlying operating system, it will run a command similar to sudo apt-get upgrade docker-engine, because Machine expects Ubuntu machines it manages to use this package. As another example, if the machine uses boot2docker for its OS, this command will download the latest boot2docker ISO and replace