Splunk logging driver

Splunk logging driver The splunk logging driver sends container logs to HTTP Event Collector in Splunk Enterprise and Splunk Cloud. Usage You can configure the default logging driver by passing the --log-driver option to the Docker daemon: docker daemon --log-driver=splunk You can set the logging driver for a specific container by using the --log-driver option to docker run: docker run --log-driver=splunk ... Splunk options You can use the --log-opt NAME=VALUE flag to specify these additional

docker update

update Usage: docker update [OPTIONS] CONTAINER [CONTAINER...] Update configuration of one or more containers --help=false Print usage --blkio-weight=0 Block IO (relative weight), between 10 and 1000 --cpu-shares=0 CPU shares (relative weight) --cpu-period=0 Limit the CPU CFS (Completely Fair Scheduler) period --cpu-quota=0 Limit the CPU CFS (Completely Fair Scheduler) quota --cpuset-cpus="" CPUs in which to al

Using Chef

Using Chef Note: Please note this is a community contributed installation path. Requirements To use this guide you’ll need a working installation of Chef. This cookbook supports a variety of operating systems. Installation The cookbook is available on the Chef Supermarket and can be installed using your favorite cookbook dependency manager. The source can be found on GitHub. Usage Add depends 'docker', '~> 2.0' to your cookbook’s metadata.rb Use resources shipped in cookbook in a recipe, t

docker-machine create

create Create a machine. Requires the --driver flag to indicate which provider (VirtualBox, DigitalOcean, AWS, etc.) the machine should be created on, and an argument to indicate the name of the created machine. $ docker-machine create --driver virtualbox dev Creating CA: /home/username/.docker/machine/certs/ca.pem Creating client certificate: /home/username/.docker/machine/certs/cert.pem Image cache does not exist, creating it at /home/username/.docker/machine/cache... No default boot2docker i

Command-line Completion

Command-line Completion Compose comes with command completion for the bash and zsh shell. Installing Command Completion Bash Make sure bash completion is installed. If you use a current Linux in a non-minimal installation, bash completion should be available. On a Mac, install with brew install bash-completion Place the completion script in /etc/bash_completion.d/ (/usr/local/etc/bash_completion.d/ on a Mac), using e.g. curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose

swarm help

help - Display information about a command The help command displays information about how to use a command. For example, to see a list of Swarm options and commands, enter: $ docker run swarm --help To see a list of arguments and options for a specific Swarm command, enter: $ docker run swarm <command> --help For example: $ docker run swarm list --help Usage: swarm list [OPTIONS] <discovery> List nodes in a cluster Arguments: <discovery> discovery service to use [$S

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.

docker-machine scp

scp Copy files from your local host to a machine, from machine to machine, or from a machine to your local host using scp. The notation is machinename:/path/to/files for the arguments; in the host machine’s case, you don’t have to specify the name, just the path. Consider the following example: $ cat foo.txt cat: foo.txt: No such file or directory $ docker-machine ssh dev pwd /home/docker $ docker-machine ssh dev 'echo A file created remotely! >foo.txt' $ docker-machine scp dev:/home/docker/

Provision with Machine

Provision a Swarm cluster with Docker Machine You can use Docker Machine to provision a Docker Swarm cluster. Machine is the Docker provisioning tool. Machine provisions the hosts, installs Docker Engine on them, and then configures the Docker CLI client. With Machine’s Swarm options, you can also quickly configure a Swarm cluster as part of this provisioning. This page explains the commands you need to provision a basic Swarm cluster on a local Mac or Windows computer using Machine. Once you u

Provision AWS EC2 Instances

Amazon Web Services (AWS) EC2 example Follow along with this example to create a Dockerized Amazon Web Services (AWS) EC2 instance. Step 1. Sign up for AWS and configure credentials If you are not already an AWS user, sign up for AWS to create an account and get root access to EC2 cloud computers. If you have an Amazon account, you can use it as your root user account. Create an IAM (Identity and Access Management) administrator user, an admin group, and a key pair associated with a region