docker:来自守护程序的错误响应:未指定命令docker export import error

时间:2018-10-21 08:52:55

标签: docker ubuntu ubuntu-14.04 docker-image

我用nvidia-docker export导出了docker镜像,并用.zip导入了相同的nvidia-docker import镜像。

此过程确实创建了图像,我可以使用nvidia-docker images

看到图像

接下来,我尝试通过运行以下命令使用该容器来启动容器

sudo nvidia-docker run -it -v /:/root/ [Image ID]

此命令给我以下错误:

docker: Error response from daemon: No command specified.
See 'docker run --help'.

我正在将{strong> Ubuntu 14 计算机与nvidia-docker一起使用。我尝试了其他命令来创建包含nvidia-docker createdocker createdocker run的容器。都产生相同的错误。

nvidia-docker inspect harsh/cardiac:gpu —-no-trunc的输出

[
{
    "Id": "sha256:23d00c357d46a7700145098f70578ac15839a6281b8883e4d880ac6d950d49c3",
    "RepoTags": [
        "harsh/cardiac:gpu"
    ],
    "RepoDigests": [],
    "Parent": "",
    "Comment": "Imported from -",
    "Created": "2018-10-17T14:15:29.284985385Z",
    "Container": "",
    "ContainerConfig": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": null,
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "DockerVersion": "18.06.1-ce",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": null,
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 3741008283,
    "VirtualSize": 3741008283,
    "GraphDriver": {
        "Data": null,
        "Name": "aufs"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:15cf02b23c94fdfeaf4046cece9d8ba74020cdf66327d48e3de473676da7f29c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2018-10-17T19:53:56.246409191+05:30"
    }
}
]
Error: No such object: —-no-trunc

0 个答案:

没有答案