我有问题与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
我将感激任何建议。
谢谢
1条答案
按热度按时间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:
然后启动你的码头集装箱