Installation on Debian

Debian Docker is supported on the following versions of Debian: Debian testing stretch (64-bit) Debian 8.0 Jessie (64-bit) Debian 7.7 Wheezy (64-bit) (backports required) Note: If you previously installed Docker using APT, make sure you update your APT sources to the new APT repository. Prerequisites Docker requires a 64-bit installation regardless of your Debian version. Additionally, your kernel must be 3.10 at minimum. The latest 3.10 minor version or a newer maintained version are also

docker-compose config

config Usage: config [options] Options: -q, --quiet Only validate the configuration, don't print anything. --services Print the service names, one per line. Validate and view the compose file.

Customize the docker0 bridge

Customize the docker0 bridge The information in this section explains how to customize 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. By default, the Docker server creates and configures the host system’s docker0 interface as an Ethernet bridge inside the Linux kernel that can pass packets back and forth between

docker port

port Usage: docker port [OPTIONS] CONTAINER [PRIVATE_PORT[/PROTO]] List port mappings for the CONTAINER, or lookup the public-facing port that is NAT-ed to the PRIVATE_PORT --help Print usage You can find out all the ports mapped by not specifying a PRIVATE_PORT, or just a specific mapping: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b650456536c7 busybo

OverlayFS storage in practice

Docker and OverlayFS in practice OverlayFS is a modern union filesystem that is similar to AUFS. In comparison to AUFS, OverlayFS: has a simpler design has been in the mainline Linux kernel since version 3.18 is potentially faster As a result, OverlayFS is rapidly gaining popularity in the Docker community and is seen by many as a natural successor to AUFS. As promising as OverlayFS is, it is still relatively young. Therefore caution should be taken before using it in production Docker enviro

PowerShell DSC Usage

Using PowerShell DSC Windows PowerShell Desired State Configuration (DSC) is a configuration management tool that extends the existing functionality of Windows PowerShell. DSC uses a declarative syntax to define the state in which a target should be configured. More information about PowerShell DSC can be found at http://technet.microsoft.com/en-us/library/dn249912.aspx. Requirements To use this guide you’ll need a Windows host with PowerShell v4.0 or newer. The included DSC configuration scrip

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 logs

logs Usage: docker logs [OPTIONS] CONTAINER Fetch the logs of a container -f, --follow Follow log output --help Print usage --since="" Show logs since timestamp -t, --timestamps Show timestamps --tail="all" Number of lines to show from the end of the logs Note: this command is available only for containers with json-file and journald logging drivers. The docker logs command batch-retrieves logs present at the ti

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

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