Archive:Docker

From The Munich Maker Lab's Wiki
Revision as of 10:05, 11 October 2016 by Tiefpunkt (talk | contribs) (details on containers)
Jump to navigation Jump to search

We currently have one docker host, running a bunch of different containers.

Hosts

coreos10

  • CoreOS
  • Access: Matthias, Severin

Reconfigure (SSH-Keys etc.):

ssh core@10.10.20.66
sudo vi /var/lib/coreos-install/user_data
sudo coreos-cloudinit -validate --from-file=/var/lib/coreos-install/user_data
sudo coreos-cloudinit --from-file=/var/lib/coreos-install/user_data

Containers

  • Applications
    • Zabbix
    • Bind (DNS)
    • Node Red
core@coreos10 ~ $ date 
Sun Oct  9 21:04:57 UTC 2016
core@coreos10 ~ $ docker ps
CONTAINER ID    IMAGE                                    COMMAND                  CREATED             STATUS          PORTS                                                            NAMES
b6f3db6400c0    nodered/node-red-docker                  "npm start -- --userD"   34 hours ago        Up 34 hours     0.0.0.0:1880->1880/tcp                                               nodered
27bfebed0345    sameersbn/bind:latest                    "/sbin/entrypoint.sh "   35 hours ago        Up 35 hours     0.0.0.0:53->53/tcp, 0.0.0.0:10000->10000/tcp, 0.0.0.0:53->53/udp     bind
b9c13a2e7c3a    monitoringartist/zabbix-db-mariadb       "/run.sh"                4 weeks ago         Up 4 weeks      3306/tcp                                                             zabbix-db
63e133f80c4d    monitoringartist/zabbix-3.0-xxl:latest   "/config/bootstrap.sh"   4 weeks ago         Up 4 weeks      162/udp, 0.0.0.0:10051->10051/tcp, 10052/tcp, 0.0.0.0:8080->80/tcp   zabbix-server
bfd538f2fb0a    siedi/zabbix-autossh                     "/autossh-start.sh za"   4 weeks ago         Up 4 weeks      10050/tcp                                                            jupiter-tunnel
03d737036a2e    siedi/zabbix-autossh                     "/autossh-start.sh za"   4 weeks ago         Up 4 weeks      10050/tcp                                                            mars-tunnel

Bind (DNS)

docker run --name bind -d --restart=always \
  --publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp \
  --volume /srv/bind:/data \
  --env ROOT_PASSWORD=<PASSWORD> \
  sameersbn/bind:latest

Docker image with Bind as DNS Server and Webmin for Administration. See details at http://www.damagehead.com/blog/2015/04/28/deploying-a-dns-server-using-docker/

Node RED

docker run ---name nodered d --restart=always \
  --publish 1880:1880 \
  --volume /srv/node-red:/data \
  nodered/node-red-docker