[
{
"Id": "d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30",
"Created": "2020-12-26T06:55:51.1766263Z",
"Path": "/bin/sh",
"Args": [
"-c",
"while true;do echo kuang;sleep 1;done"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1940,
"ExitCode": 0,
"Error": "",
"StartedAt": "2020-12-26T06:55:51.4081217Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:300e315adb2f96afe5f0b2780b87f28ae95231fe3bdd1e16b9ba606307728f55",
"ResolvConfPath": "/var/lib/docker/containers/d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30/hostname",
"HostsPath": "/var/lib/docker/containers/d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30/hosts",
"LogPath": "/var/lib/docker/containers/d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30/d1c5d0984801509d224689cecae9209e05b7db39f409abf92697c93243f15c30-json.log",
"Name": "/epic_borg",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Capabilities": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
30,
120
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"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/overlay2/c97e321fc77c00debc8f56a525efb4c3f0dd462908106dfef38c4dcfd4018857-init/diff:/var/lib/docker/overlay2/e28f2d567373fa7779b1e240041f792393c4e060812a74bc76582eb31262fe17/diff",
"MergedDir": "/var/lib/docker/overlay2/c97e321fc77c00debc8f56a525efb4c3f0dd462908106dfef38c4dcfd4018857/merged",
"UpperDir": "/var/lib/docker/overlay2/c97e321fc77c00debc8f56a525efb4c3f0dd462908106dfef38c4dcfd4018857/diff",
"WorkDir": "/var/lib/docker/overlay2/c97e321fc77c00debc8f56a525efb4c3f0dd462908106dfef38c4dcfd4018857/work"
},
"Name": "overlay2"
},
"Mounts": [],
"Config": {
"Hostname": "d1c5d0984801",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"/bin/sh",
"-c",
"while true;do echo kuang;sleep 1;done"
],
"Image": "centos",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.label-schema.build-date": "20201204",
"org.label-schema.license": "GPLv2",
"org.label-schema.name": "CentOS Base Image",
"org.label-schema.schema-version": "1.0",
"org.label-schema.vendor": "CentOS"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "72c9fd18a54275d1be0acb121edb1503ae3f67e2778ae1f2ae29ed30ad008ab3",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/72c9fd18a542",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "da881795328917da6fb33e3c05ae3cabe69bb7ca4ee1321275dd0f46adc98a8b",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "146f4611158b176bf6440c672c34d3ab9effa03e79cc745ecbeaf89a01490bc4",
"EndpointID": "da881795328917da6fb33e3c05ae3cabe69bb7ca4ee1321275dd0f46adc98a8b",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
docker exec 进入容器后开启一个新的终端.