Skip to content

Docker inspect has extra forward slash in name #6705

@tnachen

Description

@tnachen

docker inspect xxxx output:
{
"Args": [
"1"
],
"Config": {
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
"echo",
"1"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": null,
"Env": [
"HOME=/",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExposedPorts": null,
"Hostname": "f518a38a1dd6",
"Image": "busybox",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": ""
},
"Created": "2014-06-26T23:04:08.91511369Z",
"Driver": "aufs",
"ExecDriver": "native-0.2",
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"Dns": null,
"DnsSearch": null,
"Links": null,
"LxcConf": [],
"NetworkMode": "bridge",
"PortBindings": {},
"Privileged": false,
"PublishAllPorts": false,
"VolumesFrom": null
},
"HostnamePath": "/mnt/sda1/var/lib/docker/containers/f518a38a1dd6bef61fdf8ee6e8cd1dcc4d8d696f37608cc69f7e5cd5b6db59fe/hostname",
"HostsPath": "/mnt/sda1/var/lib/docker/containers/f518a38a1dd6bef61fdf8ee6e8cd1dcc4d8d696f37608cc69f7e5cd5b6db59fe/hosts",
"Id": "f518a38a1dd6bef61fdf8ee6e8cd1dcc4d8d696f37608cc69f7e5cd5b6db59fe",
"Image": "a9eb172552348a9a49180694790b33a1097f546456d041b6e82e4d7716ddb721",
"MountLabel": "",
"Name": "/naughty_ritchie",
"NetworkSettings": {
"Bridge": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"PortMapping": null,
"Ports": null
},
"Path": "echo",
"ProcessLabel": "",
"ResolvConfPath": "/etc/resolv.conf",
"State": {
"ExitCode": 0,
"FinishedAt": "2014-06-26T23:04:09.37349811Z",
"Paused": false,
"Pid": 0,
"Running": false,
"StartedAt": "2014-06-26T23:04:09.10474304Z"
},
"Volumes": {},
"VolumesRW": {}
}

docker ps -a:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f518a38a1dd6 busybox:latest echo 1 59 seconds ago Exited (0) 2 seconds ago naughty_ritchie

docker version:
Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 990021a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions