swarm create

create — Create a discovery token The create command uses Docker Hub’s hosted discovery backend to create a unique discovery token for your cluster. For example: $ docker run --rm swarm create 86222732d62b6868d441d430aee4f055 Later, when you use manage or join to create Swarm managers and nodes, you use the discovery token in the <discovery> argument (e.g., token://86222732d62b6868d441d430aee4f055). The discovery backend registers each new Swarm manager and node that uses the token as a

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 security

Docker security There are three major areas to consider when reviewing Docker security: the intrinsic security of the kernel and its support for namespaces and cgroups; the attack surface of the Docker daemon itself; loopholes in the container configuration profile, either by default, or when customized by users. the “hardening” security features of the kernel and how they interact with containers. Kernel namespaces Docker containers are very similar to LXC containers, and they have similar s

Frequently Asked Questions

Frequently asked questions If you don’t see your question here, feel free to drop by #docker-compose on freenode IRC and ask the community. Can I control service startup order? Yes - see Controlling startup order. Why do my services take 10 seconds to recreate or stop? Compose stop attempts to stop a container by sending a SIGTERM. It then waits for a default timeout of 10 seconds. After the timeout, a SIGKILL is sent to the container to forcefully kill it. If you are waiting for this timeout,

docker-machine help

help Usage: docker-machine help [arg...] Shows a list of commands or help for one command Usage: docker-machine help subcommand For example: $ docker-machine help config Usage: docker-machine config [OPTIONS] [arg...] Print the connection config for machine Description: Argument is a machine name. Options: --swarm Display the Swarm config instead of the Docker daemon

Manage data in containers

Manage data in containers So far you’ve been introduced to some basic Docker concepts, seen how to work with Docker images as well as learned about networking and links between containers. In this section you’re going to learn how you can manage data inside and between your Docker containers. You’re going to look at the two primary ways you can manage data with Docker Engine. Data volumes Data volume containers Data volumes A data volume is a specially-designated directory within one or more

docker-machine ssh

ssh Log into or run a command on a machine using SSH. To login, just run docker-machine ssh machinename: $ docker-machine ssh dev ## . ## ## ## == ## ## ## ## === /""""""""""""""""\___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\______/ _ _ ____ _ _ | |__ ___ ___ | |_|___ \ __| | ___

Plugins API

Docker Plugin API Docker plugins are out-of-process extensions which add capabilities to the Docker Engine. This page is intended for people who want to develop their own Docker plugin. If you just want to learn about or use Docker plugins, look here. What plugins are A plugin is a process running on the same or a different host as the docker daemon, which registers itself by placing a file on the same docker host in one of the plugin directories described in Plugin discovery. Plugins have huma

Using Supervisor with Docker

Using Supervisor with Docker Note: - If you don’t like sudo then see Giving non-root access Traditionally a Docker container runs a single process when it is launched, for example an Apache daemon or a SSH server daemon. Often though you want to run more than one process in a container. There are a number of ways you can achieve this ranging from using a simple Bash script as the value of your container’s CMD instruction to installing a process management tool. In this example you’re going to

Docker run reference

Docker run reference Docker runs processes in isolated containers. A container is a process which runs on a host. The host may be local or remote. When an operator executes docker run, the container process that runs is isolated in that it has its own file system, its own networking, and its own isolated process tree separate from the host. This page details how to use the docker run command to define the container’s resources at runtime. General form The basic docker run command takes this for