hi @el-jose and @Ayman
I just ran this again and I am too exactly getting same FAIL checks in verification stages.
I am not able to see any errors . I have attached below outputs to help us improve our troubleshooting skills.
Based on docker network ls , docker network inspect and docker container inspect commands it appears that both the containers are in same network 172.19.0.0/16
Can you please guide us based on below output
What more troubleshooting commands and steps we need to take ?
Where else to look for the errors ?
As I am using file same as from /var/asnwers/answers.txt I am assuming there are no changes made to that file when it ran last time successfully couple of weeks ago.
$ pwd
/root/wordpress
$
$ ls -al
total 12
drwxr-xr-x 2 root root 4096 Jun 13 00:53 .
drwx------ 5 root root 4096 Jun 13 00:53 …
-rw-r–r-- 1 root root 189 Jun 13 00:53 docker-compose.yml
$
$
$ cat docker-compose.yml
services:
db:
environment:
POSTGRES_PASSWORD: mysecretpassword
image: postgres
wordpress:
image: wordpress
links:
- db
ports:
- 8085:80
version: ‘3.0’
$
$ docker-compose config
services:
db:
environment:
POSTGRES_PASSWORD: mysecretpassword
image: postgres
wordpress:
image: wordpress
links:
- db
ports:
- 8085:80/tcp
version: ‘3.0’
$
$
$ docker-compose up -d
Creating wordpress_db_1 …
Creating wordpress_db_1 … done
Creating wordpress_wordpress_1 …
Creating wordpress_wordpress_1 … done
$
$
$
$
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e62d05a2818e wordpress “docker-entrypoint.s…” 28 seconds ago Up 27 seconds 0.0.0.0:8085->80/tcp wordpress_wordpress_1
2a1038f5740e postgres “docker-entrypoint.s…” 29 seconds ago Up 27 seconds 5432/tcp wordpress_db_1
$
$
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
88e4e1c90c31 bridge bridge local
25818271944e host host local
fe6f1f6a903a none null local
0fa4d0a856d3 wordpress_default bridge local
$
$
$ docker network inspect 0f
[
{
“Name”: “wordpress_default”,
“Id”: “0fa4d0a856d33b2394cd9687af548bed791c649ccdb1e6eb67cfef253d297138”,
“Created”: “2020-06-13T00:53:48.157901239Z”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.19.0.0/16”,
“Gateway”: “172.19.0.1”
}
]
},
“Internal”: false,
“Attachable”: true,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42”: {
“Name”: “wordpress_db_1”,
“EndpointID”: “7a0eacde45d8ddf8c919790039d42878984c427305f98bb1d0e43bcb55e38048”,
“MacAddress”: “02:42:ac:13:00:02”,
“IPv4Address”: “172.19.0.2/16”,
“IPv6Address”: “”
},
“e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6”: {
“Name”: “wordpress_wordpress_1”,
“EndpointID”: “39d352a6177a0d5b3d15cc8abc2c8f802ce8baa3ca1704d10e5aad7a777cc2f9”,
“MacAddress”: “02:42:ac:13:00:03”,
“IPv4Address”: “172.19.0.3/16”,
“IPv6Address”: “”
}
},
“Options”: {},
“Labels”: {
“com.docker.compose.network”: “default”,
“com.docker.compose.project”: “wordpress”
}
}
]
$
$
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e62d05a2818e wordpress “docker-entrypoint.s…” 59 seconds ago Up 58 seconds 0.0.0.0:8085->80/tcp wordpress_wordpress_1
2a1038f5740e postgres “docker-entrypoint.s…” About a minute ago Up 59 seconds 5432/tcp wordpress_db_1
$
$ docker container inspect e62
[
{
“Id”: “e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6”,
“Created”: “2020-06-13T01:23:24.560492734Z”,
“Path”: “docker-entrypoint.sh”,
“Args”: [
“apache2-foreground”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 6244,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2020-06-13T01:23:25.146366232Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”
},
“Image”: “sha256:2c9350d16623803c9bcfa58973b9bdba18e06d3107b15ba8090c09db946c27bf”,
“ResolvConfPath”: “/var/lib/docker/containers/e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6/hostname”,
“HostsPath”: “/var/lib/docker/containers/e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6/hosts”,
“LogPath”: “/var/lib/docker/containers/e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6/e62d05a2818ea0962042ab4e1f00a17f1e79b6ffeef324a945af476f8c0b71f6-json.log”,
“Name”: “/wordpress_wordpress_1”,
“RestartCount”: 0,
“Driver”: “overlay”,
“Platform”: “linux”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “docker-default”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: [],
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“NetworkMode”: “wordpress_default”,
“PortBindings”: {
“80/tcp”: [
{
“HostIp”: “”,
“HostPort”: “8085”
}
]
},
“RestartPolicy”: {
“Name”: “”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: [],
“CapAdd”: null,
“CapDrop”: null,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “shareable”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“ConsoleSize”: [
0,
0
],
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: null,
“DeviceCgroupRules”: null,
“DiskQuota”: 0,
“KernelMemory”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: null,
“OomKillDisable”: false,
“PidsLimit”: 0,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“MaskedPaths”: [
“/proc/asound”,
“/proc/acpi”,
“/proc/kcore”,
“/proc/keys”,
“/proc/latency_stats”,
“/proc/timer_list”,
“/proc/timer_stats”,
“/proc/sched_debug”,
“/proc/scsi”,
“/sys/firmware”
],
“ReadonlyPaths”: [
“/proc/bus”,
“/proc/fs”,
“/proc/irq”,
“/proc/sys”,
“/proc/sysrq-trigger”
]
},
“GraphDriver”: {
“Data”: {
“LowerDir”: “/var/lib/docker/overlay/94005bd4b5e89b71c6fc96092d5202106afbab95304919c36ec566cd4db0e802/root”,
“MergedDir”: “/var/lib/docker/overlay/53ba1589093f9c06b3f92aa984887beba5cafe89062a18520f3e490ca03f1e70/merged”,
“UpperDir”: “/var/lib/docker/overlay/53ba1589093f9c06b3f92aa984887beba5cafe89062a18520f3e490ca03f1e70/upper”,
“WorkDir”: “/var/lib/docker/overlay/53ba1589093f9c06b3f92aa984887beba5cafe89062a18520f3e490ca03f1e70/work”
},
“Name”: “overlay”
},
“Mounts”: [
{
“Type”: “volume”,
“Name”: “c709901c6561c3d7fc2794283be93e713b104fd3c63d86de700135a78daeff63”,
“Source”: “/var/lib/docker/volumes/c709901c6561c3d7fc2794283be93e713b104fd3c63d86de700135a78daeff63/_data”,
“Destination”: “/var/www/html”,
“Driver”: “local”,
“Mode”: “”,
“RW”: true,
“Propagation”: “”
}
],
“Config”: {
“Hostname”: “e62d05a2818e”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“80/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c”,
“PHP_INI_DIR=/usr/local/etc/php”,
“APACHE_CONFDIR=/etc/apache2”,
“APACHE_ENVVARS=/etc/apache2/envvars”,
“PHP_EXTRA_BUILD_DEPS=apache2-dev”,
“PHP_EXTRA_CONFIGURE_ARGS=–with-apxs2 --disable-cgi”,
“PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64”,
“PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64”,
“PHP_LDFLAGS=-Wl,-O1 -pie”,
“GPG_KEYS=CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D”,
“PHP_VERSION=7.3.19”,
“PHP_URL=https://www.php.net/distributions/php-7.3.19.tar.xz”,
“PHP_ASC_URL=https://www.php.net/distributions/php-7.3.19.tar.xz.asc”,
“PHP_SHA256=6402faa19b1a8c4317c7612632bce985684a5bbae0980a5779a4019439882422”,
“PHP_MD5=”,
“WORDPRESS_VERSION=5.4.2”,
“WORDPRESS_SHA1=e5631f812232fbd45d3431783d3db2e0d5670d2d”
],
“Cmd”: [
“apache2-foreground”
],
“ArgsEscaped”: true,
“Image”: “wordpress”,
“Volumes”: {
“/var/www/html”: {}
},
“WorkingDir”: “/var/www/html”,
“Entrypoint”: [
“docker-entrypoint.sh”
],
“OnBuild”: null,
“Labels”: {
“com.docker.compose.config-hash”: “3c6abed06257bbfc34b5e3d5522d06897757e91a2d2016da717b8ea8dbdd1c85”,
“com.docker.compose.container-number”: “1”,
“com.docker.compose.oneoff”: “False”,
“com.docker.compose.project”: “wordpress”,
“com.docker.compose.service”: “wordpress”,
“com.docker.compose.version”: “1.16.1”
},
“StopSignal”: “SIGWINCH”
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “132c5c9b18158359cd2e9c848b819cbae4c87916c1216d026036d3a3fb834544”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {
“80/tcp”: [
{
“HostIp”: “0.0.0.0”,
“HostPort”: “8085”
}
]
},
“SandboxKey”: “/var/run/docker/netns/132c5c9b1815”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“wordpress_default”: {
“IPAMConfig”: null,
“Links”: [
“wordpress_db_1:db”,
“wordpress_db_1:db_1”,
“wordpress_db_1:wordpress_db_1”
],
“Aliases”: [
“wordpress”,
“e62d05a2818e”
],
“NetworkID”: “0fa4d0a856d33b2394cd9687af548bed791c649ccdb1e6eb67cfef253d297138”,
“EndpointID”: “39d352a6177a0d5b3d15cc8abc2c8f802ce8baa3ca1704d10e5aad7a777cc2f9”,
“Gateway”: “172.19.0.1”,
“IPAddress”: “172.19.0.3”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:13:00:03”,
“DriverOpts”: null
}
}
}
}
]
$
$ docker container inspect 2a1
[
{
“Id”: “2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42”,
“Created”: “2020-06-13T01:23:23.951818347Z”,
“Path”: “docker-entrypoint.sh”,
“Args”: [
“postgres”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 6077,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2020-06-13T01:23:24.512991739Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”
},
“Image”: “sha256:b97bae343e06e050f84c781eee8a9d6b0688b8bbdcc0161990573c194b333479”,
“ResolvConfPath”: “/var/lib/docker/containers/2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42/hostname”,
“HostsPath”: “/var/lib/docker/containers/2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42/hosts”,
“LogPath”: “/var/lib/docker/containers/2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42/2a1038f5740ea1a116adbb3d2e2bbd229e5083c879833f4373bbd4606073bc42-json.log”,
“Name”: “/wordpress_db_1”,
“RestartCount”: 0,
“Driver”: “overlay”,
“Platform”: “linux”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “docker-default”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: [],
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“NetworkMode”: “wordpress_default”,
“PortBindings”: {},
“RestartPolicy”: {
“Name”: “”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: [],
“CapAdd”: null,
“CapDrop”: null,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “shareable”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“ConsoleSize”: [
0,
0
],
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: null,
“DeviceCgroupRules”: null,
“DiskQuota”: 0,
“KernelMemory”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: null,
“OomKillDisable”: false,
“PidsLimit”: 0,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“MaskedPaths”: [
“/proc/asound”,
“/proc/acpi”,
“/proc/kcore”,
“/proc/keys”,
“/proc/latency_stats”,
“/proc/timer_list”,
“/proc/timer_stats”,
“/proc/sched_debug”,
“/proc/scsi”,
“/sys/firmware”
],
“ReadonlyPaths”: [
“/proc/bus”,
“/proc/fs”,
“/proc/irq”,
“/proc/sys”,
“/proc/sysrq-trigger”
]
},
“GraphDriver”: {
“Data”: {
“LowerDir”: “/var/lib/docker/overlay/b2a34bfa6639c266d52d2fb21bde48339ba009a5cf87e3a47295b4db1f4a11f7/root”,
“MergedDir”: “/var/lib/docker/overlay/1c6fe784a79e70218fc7f5bec4b6ca510ad223e0f38d873c100df789e14af457/merged”,
“UpperDir”: “/var/lib/docker/overlay/1c6fe784a79e70218fc7f5bec4b6ca510ad223e0f38d873c100df789e14af457/upper”,
“WorkDir”: “/var/lib/docker/overlay/1c6fe784a79e70218fc7f5bec4b6ca510ad223e0f38d873c100df789e14af457/work”
},
“Name”: “overlay”
},
“Mounts”: [
{
“Type”: “volume”,
“Name”: “242de1cf2af3b2d9bbf4f7f8954ec61198900fc0fff54613719098b9ab56d458”,
“Source”: “/var/lib/docker/volumes/242de1cf2af3b2d9bbf4f7f8954ec61198900fc0fff54613719098b9ab56d458/_data”,
“Destination”: “/var/lib/postgresql/data”,
“Driver”: “local”,
“Mode”: “”,
“RW”: true,
“Propagation”: “”
}
],
“Config”: {
“Hostname”: “2a1038f5740e”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“5432/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“POSTGRES_PASSWORD=mysecretpassword”,
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin”,
“GOSU_VERSION=1.12”,
“LANG=en_US.utf8”,
“PG_MAJOR=12”,
“PG_VERSION=12.3-1.pgdg100+1”,
“PGDATA=/var/lib/postgresql/data”
],
“Cmd”: [
“postgres”
],
“ArgsEscaped”: true,
“Image”: “postgres”,
“Volumes”: {
“/var/lib/postgresql/data”: {}
},
“WorkingDir”: “”,
“Entrypoint”: [
“docker-entrypoint.sh”
],
“OnBuild”: null,
“Labels”: {
“com.docker.compose.config-hash”: “4f299f4dcdd14d3f6993f758213d49dbcd0a367ec89c0b24ef4168e4385f246f”,
“com.docker.compose.container-number”: “1”,
“com.docker.compose.oneoff”: “False”,
“com.docker.compose.project”: “wordpress”,
“com.docker.compose.service”: “db”,
“com.docker.compose.version”: “1.16.1”
}
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “4add2ea48402b562649261bfd00e14e80ffeb78fa1ee44fdff6331afe8db7aa9”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {
“5432/tcp”: null
},
“SandboxKey”: “/var/run/docker/netns/4add2ea48402”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“wordpress_default”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: [
“2a1038f5740e”,
“db”
],
“NetworkID”: “0fa4d0a856d33b2394cd9687af548bed791c649ccdb1e6eb67cfef253d297138”,
“EndpointID”: “7a0eacde45d8ddf8c919790039d42878984c427305f98bb1d0e43bcb55e38048”,
“Gateway”: “172.19.0.1”,
“IPAddress”: “172.19.0.2”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:13:00:02”,
“DriverOpts”: null
}
}
}
}
]
$
$