Skip to content

docker inspect shows odd CMD in ContainerConfig #18880

@bdanofsky

Description

@bdanofsky

docker inspect shows random line executed in a DOCKERFILE for a container created with an ENTRYPOINT but no CMD. This information is placed in the ContainerConfig section. The Config section of the docker inspect output looks correct (CMD is null).

The output from inspect looks like:

    "Cmd": [
        "/bin/sh",
        "-c",
        "#(nop) ADD file:56b23cd6c66a5207b7777b5a9f79693f696223a03ed0e9a190b3cdf55d40cba0 in /etc/supervisor/conf.d/userapp.conf"
    ],

another example

    "Cmd": [
        "/bin/sh",
        "-c",
        "#(nop) EXPOSE 22222/tcp"
    ],

docker client and daemon information:

Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64

Server:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64

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