Docker Containers for Infrastructure

It’s nice for labs to be able to spin things up fast. What better way to do it than with Docker containers? I’ll add more here as I use them.

OpenLDAP

docker run -d -p 389:389 \
  -e SLAPD_PASSWORD=iw2slep! \
  -e SLAPD_DOMAIN=cci.wisc.edu \
  --name openldap dinkel/openldap

docker run -d -p 80:80 \
  --link openldap:openldap \
  --name ldapadmin dinkel/phpldapadmin

BIND DNS

docker run --name bind -d --restart=always \
  --publish 53:53/tcp \
  --publish 53:53/udp \
  --publish 10000:10000/tcp \
  --volume /srv/docker/bind:/data \
  sameersbn/bind

Cacti

docker run -d -p 80  quantumobject/docker-cacti

Docker Install on Ubuntu

A simple script for installing Docker on an Ubuntu host.

apt-get update
apt-get install apt-transport-https ca-certificates curl software-properties-common curl -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-get install -y docker-ce