2015-01-15

docker inspect

docker inspect

root@boot2docker:~# docker run mastersrp/slitaz-core ls -l
exec format error2014/12/3 21:47:19 Error response from daemon: Cannot start container f8042526bcb711ff76b27b3cd4288e11373b172e690e2742f6314b91ed7b2c21: exec format error

1.
root@boot2docker:~# docker search slitaz
NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
slitaz/slitaz-base32    slitaz-rolling-base image.                      0
slitaz/slitaz-base      SliTaz base image.                              0
mastersrp/slitaz-core   A 32bit version of the core SliTaz system ...   0  


2.
root@boot2docker:~# docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
slitaz/slitaz-base32    latest              ffefc23152b9        2 days ago          18.73 MB
slitaz/slitaz-base      latest              0bd2fd062ec7        2 weeks ago         8.778 MB
mastersrp/slitaz-core   latest              3c2cb5d63685        3 months ago        41 MB


3.
root@boot2docker:~# docker inspect -f {{".Architecture"}} slitaz/slitaz-base32
386

root@boot2docker:~# docker inspect -f {{".Architecture"}} slitaz/slitaz-base
amd64

root@boot2docker:~# docker inspect -f {{".Architecture"}} mastersrp/slitaz-core
amd64



4.
root@boot2docker:~# docker inspect ffef | grep Arch
"Architecture": 386,

root@boot2docker:~# docker inspect 0bd2 | grep Arch
"Architecture": "amd64",

root@boot2docker:~# docker inspect 3c2c | grep Arch
"Architecture": "amd64",



5.
root@boot2docker:~# docker inspect mastersrp/slitaz-core
[{
    "Architecture": "amd64",
    "Author": "",
    "Comment": "Imported from -",
    "Config": null,
    "Container": "",
    "ContainerConfig": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": null,
        "CpuShares": 0,
        "Cpuset": "",
        "Domainname": "",
        "Entrypoint": null,
        "Env": null,
        "ExposedPorts": null,
        "Hostname": "",
        "Image": "",
        "MacAddress": "",
        "Memory": 0,
        "MemorySwap": 0,
        "NetworkDisabled": false,
        "OnBuild": null,
        "OpenStdin": false,
        "PortSpecs": null,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": null,
        "WorkingDir": ""
    },
    "Created": "2014-09-28T12:00:37.328959765Z",
    "DockerVersion": "1.2.0",
    "Id": "3c2cb5d63685a08f384e3f1704eda3b7eac66324ea249fa6974c0e5145a7fe78",
    "Os": "linux",
    "Parent": "",
    "Size": 41000049,
    "VirtualSize": 41000049
}
]