-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi,
I use docker version 1.12 :
$ docker info
Containers: 64
Running: 13
Paused: 0
Stopped: 51
Images: 239
Server Version: 1.12.1
Storage Driver: aufs
Root Dir: /data/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 438
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.66 GiB
I use this command line to start dockerDDNS.py :
$ python3 /usr/local/sbin/dockerDDNS.py --key /etc/bind/My_private_key.private --domain example.com --server 127.0.0.1 --catchup --log-level debug
When I start a new container :
$ docker run -it --name toto --hostname patate ubuntu:14.04 bash
$ tail /var/log/docker-ddns.log
2017-01-11 20:46:25,634 - root - DEBUG - Read line 2017-01-11T20:46:25.634380591-05:00 container create bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d (image=ubuntu:14.04, name=toto)
2017-01-11 20:46:25,636 - root - DEBUG - Read line 2017-01-11T20:46:25.635462116-05:00 container attach bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d (image=ubuntu:14.04, name=toto)
2017-01-11 20:46:25,973 - root - DEBUG - Read line 2017-01-11T20:46:25.973205173-05:00 network connect 9728b95a3cc6594414cfbcae6a1eab71dc9de12f406d839b68a53a76b960de42 (container=bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d, name=bridge, type=bridge)
2017-01-11 20:46:26,269 - root - DEBUG - Read line 2017-01-11T20:46:26.268651386-05:00 container start bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d (image=ubuntu:14.04, name=toto)
2017-01-11 20:46:26,270 - root - DEBUG - Read line 2017-01-11T20:46:26.270063617-05:00 container resize bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d (height=49, image=ubuntu:14.04, name=toto, width=190)
Event are not trap , if I look the commentary at the bottom of the script :
2014-11-28T15:32:04.000000000+01:00 a3d66b00acc9adbdbdbc91cc664d2d94b6a07cc4295c5cf54fcc595e2aa92a43: (from mongo:latest) restart
2015-03-05T08:36:14.000000000+01:00 eb75c1a5ad836d008b0fd66bf6b1ea353510175e8caa619e59d9851029b1ceca: (from ggtools/zabbix-server:latest) exec_start: ifconfig eth0
Lines don't use the same format :
2017-01-11T20:46:26.268651386-05:00 container start bc340bc76860452fb99ce15101765107f0cf32005e9fcb3261407d81d247307d (image=ubuntu:14.04, name=toto)