Skip to content

Instantly share code, notes, and snippets.

@mushfiqweb
Created April 17, 2024 13:41
Show Gist options
  • Select an option

  • Save mushfiqweb/9fafe2a064a3533a16069b22a12cb663 to your computer and use it in GitHub Desktop.

Select an option

Save mushfiqweb/9fafe2a064a3533a16069b22a12cb663 to your computer and use it in GitHub Desktop.
[
{
"Id": "45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157",
"Created": "2024-04-17T11:40:38.440505329Z",
"Path": "docker-entrypoint.sh",
"Args": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password",
"--local-infile=1"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 6261,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-04-17T13:36:37.63193035Z",
"FinishedAt": "2024-04-17T13:18:13.515368965Z"
},
"Image": "sha256:7484689f290f1defe06b65befc54cb6ad91a667cf0af59a265ffe76c46bd0478",
"ResolvConfPath": "/var/lib/docker/containers/45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157/hostname",
"HostsPath": "/var/lib/docker/containers/45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157/hosts",
"LogPath": "/var/lib/docker/containers/45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157/45dc300177b6f26c911684d01a8028a85b5ab5b18feee70a04c59169a84aa157-json.log",
"Name": "/common-mysql-1",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/mushfiqwsl/work/docker-commons/mysql/sqls:/sqls:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "0fba28fffff0668cf0349f9b1e963bf12a054d49626f81f5170d8192b22601ef",
"PortBindings": {
"3306/tcp": [
{
"HostIp": "",
"HostPort": "3306"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"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,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"Mounts": [
{
"Type": "volume",
"Source": "common-mysql-db",
"Target": "/var/lib/mysql",
"VolumeOptions": {}
}
],
"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",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/55c7391f89fdc3822bea2849e05ffacb6d3a5aa0cca4c9072f5bd43d21d7749d-init/diff:/var/lib/docker/overlay2/19c2d12ffa982f24987a2f445487547dbcf731ede8b446d8f127b727a780b0b0/diff:/var/lib/docker/overlay2/f3c0d014e9c38b3967c41e9d17235e113f57cd0cef955b5b8ba9bd60ced1e344/diff:/var/lib/docker/overlay2/c598a6747df75ecef7729b72d87f81e054a0e7de5274f9f7761a4e7c1ef19093/diff:/var/lib/docker/overlay2/deb77c8061b1d0a41ffdfd0d0f6231b2fcc3fbebdc98a9d56ae0dadc68809788/diff:/var/lib/docker/overlay2/51858e868c1326da8b2216af3ebf6e466fe4a91fd50b43a510759d52fa95061b/diff:/var/lib/docker/overlay2/28037b790b847ea1e64d2e8645fcf28a78363bf976f7cf4ba2b1b3e0f119f99b/diff:/var/lib/docker/overlay2/8c1557afdec64b987339ad9c202b3933e83669241f692a3e5ace096ceed9a6b3/diff:/var/lib/docker/overlay2/ce84c06381a7c6615483114852908059f27421f95bbb66f0b9e5a95b607621b1/diff:/var/lib/docker/overlay2/9bcbbf7273e7d46c14283d0f7d4414090d353465d17fd8c1ae03b59e12c1c7ff/diff:/var/lib/docker/overlay2/ba3ec11233ac9abc9325358a2c4c54a295a16490fffaf270dba5884806ffbeec/diff:/var/lib/docker/overlay2/20d86337819142acdcf5661503d5dfabe670a5f0aea253ef54b9ccead3c96a59/diff",
"MergedDir": "/var/lib/docker/overlay2/55c7391f89fdc3822bea2849e05ffacb6d3a5aa0cca4c9072f5bd43d21d7749d/merged",
"UpperDir": "/var/lib/docker/overlay2/55c7391f89fdc3822bea2849e05ffacb6d3a5aa0cca4c9072f5bd43d21d7749d/diff",
"WorkDir": "/var/lib/docker/overlay2/55c7391f89fdc3822bea2849e05ffacb6d3a5aa0cca4c9072f5bd43d21d7749d/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/home/mushfiqwsl/work/docker-commons/mysql/sqls",
"Destination": "/sqls",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "common-mysql-db",
"Source": "/var/lib/docker/volumes/common-mysql-db/_data",
"Destination": "/var/lib/mysql",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "45dc300177b6",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"3306/tcp": {},
"33060/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"MYSQL_ROOT_PASSWORD=secret",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOSU_VERSION=1.14",
"MYSQL_MAJOR=8.0",
"MYSQL_VERSION=8.0.31-1.el8",
"MYSQL_SHELL_VERSION=8.0.31-1.el8"
],
"Cmd": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password",
"--local-infile=1"
],
"Image": "mysql:8.0.31",
"Volumes": {
"/var/lib/mysql": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "f959c48659680fe732a01bc58b0ab25c42c871c6997f32fde446818cf3d7a5f3",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:7484689f290f1defe06b65befc54cb6ad91a667cf0af59a265ffe76c46bd0478",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "common",
"com.docker.compose.project.config_files": "/home/mushfiqwsl/work/docker-commons/docker-compose.yml,/home/mushfiqwsl/work/docker-commons/docker-compose.override.mysql.yml,/home/mushfiqwsl/work/docker-commons/docker-compose.override.redis.yml,/home/mushfiqwsl/work/docker-commons/docker-compose.override.yml",
"com.docker.compose.project.working_dir": "/home/mushfiqwsl/work/docker-commons",
"com.docker.compose.service": "mysql",
"com.docker.compose.version": "2.21.0"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "60b937a7c06ffec9a0b3725ace4e6104c37d3a024deaa91832cdf940dd500dc4",
"SandboxKey": "/var/run/docker/netns/60b937a7c06f",
"Ports": {
"3306/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "3306"
},
{
"HostIp": "::",
"HostPort": "3306"
}
],
"33060/tcp": null
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"common": {
"IPAMConfig": {},
"Links": null,
"Aliases": [
"common-mysql-1",
"mysql",
"common-mysql",
"45dc300177b6"
],
"MacAddress": "02:42:ac:12:00:03",
"NetworkID": "0fba28fffff0668cf0349f9b1e963bf12a054d49626f81f5170d8192b22601ef",
"EndpointID": "535f03b1451a1b0f7642008f56ea40855c3f1719b701fd7a20e585d2adfc127d",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": [
"common-mysql-1",
"mysql",
"common-mysql",
"45dc300177b6"
]
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment