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.

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-machine restart

restart Usage: docker-machine restart [arg...] Restart a machine Description: Argument(s) are one or more machine names. Restart a machine. Oftentimes this is equivalent to docker-machine stop; docker-machine start. But some cloud driver try to implement a clever restart which keeps the same ip address. $ docker-machine restart dev Waiting for VM to start...

docker build

build Usage: docker build [OPTIONS] PATH | URL | - Build a new image from the source code at PATH --build-arg=[] Set build-time variables --cpu-shares CPU Shares (relative weight) --cgroup-parent="" Optional parent cgroup for the container --cpu-period=0 Limit the CPU CFS (Completely Fair Scheduler) period --cpu-quota=0 Limit the CPU CFS (Completely Fair Scheduler) quota --cpuset-cpus=""

Docker Swarm API

Docker Swarm API The Docker Swarm API is mostly compatible with the Docker Remote API. This document is an overview of the differences between the Swarm API and the Docker Remote API. Missing endpoints Some endpoints have not yet been implemented and will return a 404 error. POST "/images/create" : "docker import" flow not implement Endpoints which behave differently Endpoint Differences GET "/containers/{name:.*}/json" New field Node added: "Node": { "Id": "ODAI:IC6Q:MSBL:TPB5:HIEE:6IK