"docker image inspect alpine" - Inspect Alpine Image

Q

How to Inspect Alpine Docker Image with the "docker image inspect alpine" command?

✍: FYIcenter.com

A

To get more detailed information about the Alpine Docker Image, you can use the "docker image inspect alpine" command.

1. Download the image from the registry.

fyicenter$ docker image inspect alpine

[
    {
        "Id": "sha256:055936d3920576da37aa9bc460d70c5f212028bda1c08c0879aedf03d7a66ea1",
        "RepoTags": [
            "alpine:latest"
        ],
        "RepoDigests": [
            "alpine@sha256:769fddc7cc2f0a1c35abb2f91432e8beecf83916c421420e6a6da9f8975464b6"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2019-05-11T00:07:03.510395965Z",
        "Container": "c10d36fa368a7ea673683682666758adf35efe98e10989505f4f566b5b18538f",
        "ContainerConfig": {
            "Hostname": "c10d36fa368a",
            "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",
                "#(nop) ",
                "CMD [\"/bin/sh\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:09f2bbe58e774849d74dc1391c2e01731896c745c4aba1ecf69a283bdb4b537a",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "DockerVersion": "18.06.1-ce",
        "Author": "",
        "Config": {
            "Hostname": "",
            "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"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:09f2bbe58e774849d74dc1391c2e01731896c745c4aba1ecf69a283bdb4b537a",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 5533135,
        "VirtualSize": 5533135,
        ...
    }
]

As you can see, this Alpine Docker image is created for Docker CE 18.06.1, and supports "linux" on "amd64" architecture.

 

"docker container create alpine" - Create Alpine Container

"docker image pull alpine" - Pull Alpine Image

Alpine Linux Docker Image

⇑⇑ Docker Container Platform - Tutorials

2019-03-04, 968🔥, 0💬