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-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.

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-compose ps

ps Usage: ps [options] [SERVICE...] Options: -q Only display IDs Lists containers.

Digital Ocean

Digital Ocean Create Docker machines on Digital Ocean. You need to create a personal access token under “Apps & API” in the Digital Ocean Control Panel and pass that to docker-machine create with the --digitalocean-access-token option. $ docker-machine create --driver digitalocean --digitalocean-access-token=aa9399a2175a93b17b1c86c807e08d3fc4b79876545432a629602f61cf6ccd6b test-this Options: --digitalocean-access-token: required Your personal access token for the Digital Ocean API. --digi

Configure container DNS

Configure container DNS The information in this section explains configuring container DNS within the Docker default bridge. This is a bridge network named bridge created automatically when you install Docker. Note: The Docker networks feature allows you to create user-defined networks in addition to the default bridge network. Please refer to the Docker Embedded DNS section for more information on DNS configurations in user-defined networks. How can Docker supply each container with a hostna

docker import

import Usage: docker import file|URL|- [REPOSITORY[:TAG]] Create an empty filesystem image and import the contents of the tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it. -c, --change=[] Apply specified Dockerfile instructions while importing the image --help Print usage -m, --message= Set commit message for imported image You can specify a URL or - (dash) to take data directly from STDIN. The URL can point to an archive (.tar,

VMware vCloud Air

VMware vCloud Air Creates machines on vCloud Air subscription service. You need an account within an existing subscription of vCloud Air VPC or Dedicated Cloud. $ docker-machine create --driver vmwarevcloudair --vmwarevcloudair-username=user --vmwarevcloudair-password=SECRET vm Options: --vmwarevcloudair-username: required vCloud Air Username. --vmwarevcloudair-password: required vCloud Air Password. --vmwarevcloudair-computeid: Compute ID (if using Dedicated Cloud). --vmwarevcloudair-vdci

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

Installation on Mac OS X

Mac OS X You install Docker using Docker Toolbox. Docker Toolbox includes the following Docker tools: Docker Machine for running the docker-machine binary Docker Engine for running the docker binary Docker Compose for running the docker-compose binary Kitematic, the Docker GUI a shell preconfigured for a Docker command-line environment Oracle VM VirtualBox Because the Docker daemon uses Linux-specific kernel features, you can’t run Docker natively in OS X. Instead, you must use docker-machine