Installation on CentOS

CentOS Docker runs on CentOS 7.X. An installation on other binary compatible EL7 distributions such as Scientific Linux might succeed, but Docker does not test or support Docker on these distributions. This page instructs you to install using Docker-managed release packages and installation mechanisms. Using these packages ensures you get the latest release of Docker. If you wish to install using CentOS-managed packages, consult your CentOS documentation. Prerequisites Docker requires a 64-bit

docker-machine ls

ls Usage: docker-machine ls [OPTIONS] [arg...] List machines Options: --quiet, -q Enable quiet mode --filter [--filter option --filter option] Filter output based on conditions provided --timeout, -t "10" Timeout in seconds, default to 10s --format, -f Pretty-print machines using a Go template Timeout The ls command tries to reach each host in parallel. If a given host does not answer in

docker-compose logs

logs Usage: logs [options] [SERVICE...] Options: --no-color Produce monochrome output. -f, --follow Follow log output -t, --timestamps Show timestamps --tail Number of lines to show from the end of the logs for each container. Displays log output from services.

docker-compose up

up Usage: up [options] [SERVICE...] Options: -d Detached mode: Run containers in the background, print new container names. Incompatible with --abort-on-container-exit. --no-color Produce monochrome output. --no-deps Don't start linked services. --force-recreate Recreate containers even if their configuration and image h

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

VMware vSphere

VMware vSphere Creates machines on a VMware vSphere Virtual Infrastructure. The machine must have a working vSphere ESXi installation. You can use a paid license or free 60 day trial license. Your installation may also include an optional VCenter server. $ docker-machine create --driver vmwarevsphere --vmwarevsphere-username=user --vmwarevsphere-password=SECRET vm Options: --vmwarevsphere-username: required vSphere Username. --vmwarevsphere-password: required vSphere Password. --vmwarevspher

Dockerizing PostgreSQL

Dockerizing PostgreSQL Note: - If you don’t like sudo then see Giving non-root access Installing PostgreSQL on Docker Assuming there is no Docker image that suits your needs on the Docker Hub, you can create one yourself. Start by creating a new Dockerfile: Note: This PostgreSQL setup is for development-only purposes. Refer to the PostgreSQL documentation to fine-tune these settings so that it is suitably secure. # # example Dockerfile for https://docs.docker.com/examples/postgresql_service

docker-machine stop

stop Usage: docker-machine stop [arg...] Gracefully Stop a machine Description: Argument(s) are one or more machine names. For example: $ docker-machine ls NAME ACTIVE DRIVER STATE URL dev * virtualbox Running tcp://192.168.99.104:2376 $ docker-machine stop dev $ docker-machine ls NAME ACTIVE DRIVER STATE URL dev * virtualbox Stopped

docker top

top Usage: docker top [OPTIONS] CONTAINER [ps OPTIONS] Display the running processes of a container --help Print usage

docker volume inspect

volume inspect Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...] Return low-level information on a volume -f, --format= Format the output using the given go template. --help Print usage Returns information about a volume. By default, this command renders all results in a JSON array. You can specify an alternate format to execute a given template for each result. Go’s text/template package describes all the details of the format. Example output: $ docker volume