Last active
June 22, 2016 15:13
-
-
Save swade1987/9d575d2b8e0dc014a04da2695d894cd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@ip-10-1-130-157:~$ docker info | |
| Containers: 3 | |
| Running: 3 | |
| Paused: 0 | |
| Stopped: 0 | |
| Images: 3 | |
| Server Version: 1.11.2 | |
| Storage Driver: aufs | |
| Root Dir: /var/lib/docker/aufs | |
| Backing Filesystem: extfs | |
| Dirs: 14 | |
| Dirperm1 Supported: true | |
| Logging Driver: json-file | |
| Cgroup Driver: cgroupfs | |
| Plugins: | |
| Volume: local | |
| Network: overlay bridge null host | |
| Kernel Version: 4.4.0-24-generic | |
| Operating System: Ubuntu 16.04 LTS | |
| OSType: linux | |
| Architecture: x86_64 | |
| CPUs: 2 | |
| Total Memory: 3.858 GiB | |
| Name: ip-10-1-130-157 | |
| ID: 3EPN:U56D:Z4D2:Y46S:NRIB:2GLD:SMEK:ONB6:BARA:G2RN:YRI4:CJSV | |
| Docker Root Dir: /var/lib/docker | |
| Debug mode (client): false | |
| Debug mode (server): false | |
| Registry: https://index.docker.io/v1/ | |
| WARNING: No swap limit support | |
| Cluster store: consul://consul.ci.ukpds.org | |
| Cluster advertise: 10.1.130.157:2375 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@ip-10-1-64-24:~$ docker -H :80 info | |
| Containers: 3 | |
| Running: 2 | |
| Paused: 0 | |
| Stopped: 1 | |
| Images: 3 | |
| Server Version: swarm/1.2.3 | |
| Role: primary | |
| Strategy: spread | |
| Filters: health, port, containerslots, dependency, affinity, constraint | |
| Nodes: 2 | |
| ip-10-1-65-12: 10.1.65.12:2375 | |
| └ ID: 3EPN:U56D:Z4D2:Y46S:NRIB:2GLD:SMEK:ONB6:BARA:G2RN:YRI4:CJSV | |
| └ Status: Pending | |
| └ Containers: 3 | |
| └ Reserved CPUs: 0 / 2 | |
| └ Reserved Memory: 0 B / 4.051 GiB | |
| └ Labels: executiondriver=, kernelversion=4.4.0-24-generic, operatingsystem=Ubuntu 16.04 LTS, storagedriver=aufs | |
| └ Error: ID duplicated. 3EPN:U56D:Z4D2:Y46S:NRIB:2GLD:SMEK:ONB6:BARA:G2RN:YRI4:CJSV shared by this node 10.1.65.12:2375 and another node 10.1.130.157:2375 | |
| └ UpdatedAt: 2016-06-22T15:10:26Z | |
| └ ServerVersion: 1.11.2 | |
| ip-10-1-130-157: 10.1.130.157:2375 | |
| └ ID: 3EPN:U56D:Z4D2:Y46S:NRIB:2GLD:SMEK:ONB6:BARA:G2RN:YRI4:CJSV | |
| └ Status: Healthy | |
| └ Containers: 3 | |
| └ Reserved CPUs: 0 / 2 | |
| └ Reserved Memory: 0 B / 4.051 GiB | |
| └ Labels: executiondriver=, kernelversion=4.4.0-24-generic, operatingsystem=Ubuntu 16.04 LTS, storagedriver=aufs | |
| └ UpdatedAt: 2016-06-22T15:10:52Z | |
| └ ServerVersion: 1.11.2 | |
| Plugins: | |
| Volume: | |
| Network: | |
| Kernel Version: 4.4.0-24-generic | |
| Operating System: linux | |
| Architecture: amd64 | |
| CPUs: 2 | |
| Total Memory: 4.051 GiB | |
| Name: 2b65352a8a47 | |
| Docker Root Dir: | |
| Debug mode (client): false | |
| Debug mode (server): false | |
| WARNING: No kernel memory limit support |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@ip-10-1-130-157:~$ docker network ls | |
| NETWORK ID NAME DRIVER | |
| d716fbfb7319 bridge bridge | |
| 26cfba44e8b6 ci overlay | |
| be38b24428e8 docker_gwbridge bridge | |
| 42cfb61d9802 host host | |
| a0019123ebbf none null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@ip-10-1-130-157:~$ docker logs registrator | |
| 2016/06/22 14:24:02 Starting registrator v7 ... | |
| 2016/06/22 14:24:03 Using consul adapter: consul://consul.ci.ukpds.org | |
| 2016/06/22 14:24:03 Connecting to backend (0/0) | |
| 2016/06/22 14:24:03 consul: current leader 10.1.5.217:8300 | |
| 2016/06/22 14:24:03 Listening for Docker events ... | |
| 2016/06/22 14:24:03 Syncing services on 3 containers | |
| 2016/06/22 14:24:03 added: 599bd45f007b ip-10-1-130-157:traefik:80 | |
| 2016/06/22 14:24:03 added: 599bd45f007b ip-10-1-130-157:traefik:8080 | |
| 2016/06/22 14:24:03 ignored: 00da5bb934be no published ports | |
| 2016/06/22 14:24:03 ignored: 86274a5cf6b1 port 2375 not published on host | |
| 2016/06/22 14:24:03 container, 599bd45f007b , already exists, ignoring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d \ | |
| --name swarm \ | |
| -p 80:80 \ | |
| swarm manage \ | |
| -H tcp://0.0.0.0:80 \ | |
| --replication \ | |
| --advertise $${HOST_IP}:80 consul://${consul_server} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo docker run -d \ | |
| -p 80:80 \ | |
| -p 8080:8080 \ | |
| --name=traefik \ | |
| --net=${environment} \ | |
| traefik \ | |
| -l DEBUG \ | |
| -c /dev/null \ | |
| --docker \ | |
| --docker.domain=${environment_subdomain} \ | |
| --docker.endpoint=tcp://${swarm_domain_name}:80 \ | |
| --docker.watch \ | |
| --web |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time="2016-06-22T14:24:03Z" level=info msg="Traefik version v1.0.0-rc2 built on 2016-06-08_12:35:41PM" | |
| time="2016-06-22T14:24:03Z" level=info msg="Using TOML configuration file /dev/null" | |
| time="2016-06-22T14:24:03Z" level=debug msg="Global configuration loaded {\"GraceTimeOut\":10,\"Debug\":false,\"AccessLogsFile\":\"\",\"TraefikLogsFile\":\"\",\"LogLevel\":\"DEBUG\",\"EntryPoints\":{\"http\":{\"Network\":\"\",\"Address\":\":80\",\"TLS\":null,\"Redirect\":null}},\"Constraints\":[],\"ACME\":null,\"DefaultEntryPoints\":[\"http\"],\"ProvidersThrottleDuration\":2000000000,\"MaxIdleConnsPerHost\":200,\"Retry\":null,\"Docker\":{\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Endpoint\":\"tcp://swarm.ci.ukpds.org:80\",\"Domain\":\"ci.ukpds.org\",\"TLS\":null},\"File\":null,\"Web\":{\"Address\":\":8080\",\"CertFile\":\"\",\"KeyFile\":\"\",\"ReadOnly\":false},\"Marathon\":null,\"Consul\":null,\"ConsulCatalog\":null,\"Etcd\":null,\"Zookeeper\":null,\"Boltdb\":null,\"Kubernetes\":null}" | |
| time="2016-06-22T14:24:03Z" level=info msg="Preparing server http &{Network: Address::80 TLS:<nil> Redirect:<nil>}" | |
| time="2016-06-22T14:24:03Z" level=info msg="Starting provider *provider.Docker {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Endpoint\":\"tcp://swarm.ci.ukpds.org:80\",\"Domain\":\"ci.ukpds.org\",\"TLS\":null}" | |
| time="2016-06-22T14:24:03Z" level=info msg="Starting provider *main.WebProvider {\"Address\":\":8080\",\"CertFile\":\"\",\"KeyFile\":\"\",\"ReadOnly\":false}" | |
| time="2016-06-22T14:24:03Z" level=info msg="Starting server on :80" | |
| time="2016-06-22T14:24:23Z" level=debug msg="Docker connection established with docker (API )" | |
| time="2016-06-22T14:24:43Z" level=error msg="Failed to list containers for docker, error Cannot connect to the Docker daemon. Is the docker daemon running on this host?" | |
| time="2016-06-22T14:24:43Z" level=error msg="Docker connection error Cannot connect to the Docker daemon. Is the docker daemon running on this host?, retrying in 413.639433ms" | |
| time="2016-06-22T14:25:03Z" level=debug msg="Docker connection established with docker (API )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment