无法运行映像,调用远程方法“docker-run-container”时出错:错误:(HTTP代码400)意外-未指定命令

aiqt4smr  于 2023-01-08  发布在  Docker
关注(0)|答案(1)|浏览(564)

我有问题与docker,我有一个图像,我导入使用以下命令:

docker image import  C:\Users\****\Downloads\imagename-b1.tar imagename-b1:latest

当我尝试运行image/container时,对于图像,它给出了以下错误:

Failed to run image. Error invoking remote method 'docker-run-container': Error: (HTTP code 400) unexpected - No command specified

对于容器,它给出以下错误:

Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "--name": executable file not found in $PATH: unknown

Docker版本20.10.21, build baeda1f

我将感激任何建议。
谢谢

9njqaruj

9njqaruj1#

刚刚有一个类似的问题。尝试从您的终端启动图像。当我这样做时对我有效。
也可以检查此Github问题。https://github.com/dotnet-architecture/eShopOnContainers/issues/1699
After using the CMD to start the image, later encountered port issues. Found this solution that works now. https://github.com/docker/for-win/issues/9272#issuecomment-776225866
靶病变; DR:

net stop winnat

然后启动你的码头集装箱

net start winnat

相关问题