|
root@iStoreOS:~# docker inspect a7722d27618a
[
{
"Id": "a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97",
"Created": "2023-12-24T15:33:10.453303195Z",
"ath": "/nas-tools/docker/entrypoint.sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"aused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"id": 1236,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-12-24T17:22:53.677231469Z",
"FinishedAt": "2023-12-24T17:22:52.225658968Z"
},
"Image": "sha256:8aab40b49393817b0c34d1509315fe64d57930eb3668251fa7bf3f549a37604b",
"ResolvConfPath": "/mnt/data_vdc1/docker/containers/a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97/resolv.conf",
"HostnamePath": "/mnt/data_vdc1/docker/containers/a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97/hostname",
"HostsPath": "/mnt/data_vdc1/docker/containers/a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97/hosts",
"LogPath": "/mnt/data_vdc1/docker/containers/a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97/a7722d27618a0d664f1a3e55620236bb7a667cb4494e5f275223cb4811fd0b97-json.log",
"Name": "/nastools",
"RestartCount": 0,
"Driver": "overlay2",
"latform": "linux",
"MountLabel": "",
"rocessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/mnt/data_vdc1/Configs/NasTools:/config",
"/mnt:/mnt:rslave"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {
"max-file": "2",
"max-size": "50m"
}
},
"NetworkMode": "default",
"ortBindings": {
"3000/tcp": [
{
"HostIp": "",
"HostPort": "3003"
}
]
},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [
"172.17.0.1"
],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"idMode": "",
"rivileged": false,
"ublishAllPorts": 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": [],
"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,
"idsLimit": 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": "/mnt/data_vdc1/docker/overlay2/4bd8a56756f2c74eb42e8e17a5e8744c7d49aaa69224259dc246a934b89976dc-init/diff:/mnt/data_vdc1/docker/overlay2/5db51910e46782c187cf12bafd82c869576a8cde639c91823422cf0a82e87b02/diff:/mnt/data_vdc1/docker/overlay2/b4f6e7a7891ef9807da433a01cd2464f0a4215f98f49b5c8de62ecc6dbb92681/diff:/mnt/data_vdc1/docker/overlay2/6e752c88e8bb72a6d1c9283da0386369ad1ed14885e886a81441174bc87dcca3/diff:/mnt/data_vdc1/docker/overlay2/69faa697825785b13dcf2672a2ca2e4e2b06cac6125bdf006f91db7ea1411bdf/diff",
"MergedDir": "/mnt/data_vdc1/docker/overlay2/4bd8a56756f2c74eb42e8e17a5e8744c7d49aaa69224259dc246a934b89976dc/merged",
"UpperDir": "/mnt/data_vdc1/docker/overlay2/4bd8a56756f2c74eb42e8e17a5e8744c7d49aaa69224259dc246a934b89976dc/diff",
"WorkDir": "/mnt/data_vdc1/docker/overlay2/4bd8a56756f2c74eb42e8e17a5e8744c7d49aaa69224259dc246a934b89976dc/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/mnt/data_vdc1/Configs/NasTools",
"Destination": "/config",
"Mode": "",
"RW": true,
"ropagation": "rprivate"
},
{
"Type": "bind",
"Source": "/mnt",
"Destination": "/mnt",
"Mode": "rslave",
"RW": true,
"ropagation": "rslave"
}
],
"Config": {
"Hostname": "nastools",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"3000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"UMASK=000",
"TZ=Asia/Shanghai",
"NASTOOL_AUTO_UPDATE=true",
"ATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"NASTOOL_CONFIG=/config/config.yaml",
"NASTOOL_CN_UPDATE=true",
"NASTOOL_VERSION=master",
"S1=\\u@\\h:\\w $ ",
"REPO_URL=https://github.com/jxxghp/nas-tools.git",
"UID=0",
"GID=0",
"WORKDIR=/nas-tools"
],
"Cmd": null,
"Image": "ljnpng/nastools:2.9.0",
"Volumes": {
"/config": {}
},
"WorkingDir": "/nas-tools",
"Entrypoint": [
"/nas-tools/docker/entrypoint.sh"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "4c1a7e1ee0f7357e1e8a84e8ef00a1609ebb0c4d99c0b8e4790aa7abd4ccf3f4",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"orts": {
"3000/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "3003"
},
{
"HostIp": "::",
"HostPort": "3003"
}
]
},
"SandboxKey": "/var/run/docker/netns/4c1a7e1ee0f7",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "9d18cd4c402dc6d15a31e546a35f94083e585e7888fc41262390d933d2e1fe27",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:05",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "839d146411c03b2da6bde2d53ef0157e8f4823189dbf58d19e40ac41d84f6de4",
"EndpointID": "9d18cd4c402dc6d15a31e546a35f94083e585e7888fc41262390d933d2e1fe27",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:05",
"DriverOpts": null
}
}
}
}
]
root@iStoreOS:~# docker exec -it a7722d27618a
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Run a command in a running container
按网上的教程 搜了一下出来这个 但是后续不会弄了 |
|