0

I am having trouble with docker, i had an image which i imported using the following command:

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

And when i try to run image/container, for the image it gives this error:

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

And for the container it gives this error:

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 Version 20.10.21, build baeda1f

I'll appreciate any suggestion.

Thank you

Divad
  • 273
  • 3
  • 14
  • WIthout the Dockerfile/docker-compose.yml it's difficult to make any guess. Can you provide more details please? – Aschen Jan 04 '23 at 11:19

1 Answers1

2

Just had a similar issue. Try starting the image from your terminal. Works for me when I did that.

Can check this Github issue too. 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

TL;DR:

net stop winnat

Then start your docker container. Then

net start winnat
Jonathan
  • 21
  • 2