Docker

My dockerhub

Docker proxies (Load balancer)

Snippets

Add debian backports from Dockerfile

1
RUN printf "deb http://httpredir.debian.org/debian jessie-backports main non-free\ndeb-src http://httpredir.debian.org/debian jessie-backports main non-free" > /etc/apt/sources.list.d/backports.list

Tools

  • ctop: Top-like interface for container metrics
  • hadolint: Dockerfile linter written in Haskell

Web GUI management

  • Rancher: Complete container management platform
  • portainer: Simple management UI for Docker

Orchestration

Docker swarm

docker-compose

Recipes

  • [X] Add some docker-compose.yml recipes #eeb6c94f

Override some container environment vars

Just create docker-compose.override.yml and set container overrides like this example:

1
2
3
4
5
6
version: "2"

services:
editor:
environment:
- NODE_ENV=dev

Building image without cache

1
docker-compose build --no-cache service1

Using default values overrideable by environment vars

1
${VARIABLE:-default} will evaluate to default if VARIABLE is unset or empty in the environment.

Example:

1
2
ports:
- "${PORT-8080}:80"

Links:

⬆︎TOP