I am new to Docker, so this might be a very basic question.
I have installed Docker for Windows in my machine and I have checked the installation with commands “docker -version” and “docker run hello-world”. Both the commands work as expected.
Now I am trying to start a container using the nginx image in docker hub but this command is not working. The same way other commands to start container for ubuntu dont work:
docker container run --interactive --tty ubuntu bash
docker container run --publish 80:80 nginx
Both these commands dont work. The message I get is:
PS C:\Program Files\Docker\Docker\resources\bin> docker run --interactive --tty ubuntu bash
Unable to find image ‘ubuntu:latest’ locally
latest: Pulling from library/ubuntu
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: no matching manifest for windows/amd64 in the manifest list entries.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’
PS C:\Program Files\Docker\Docker\resources\bin> docker container run --publish 80:80 nginx
Unable to find image ‘nginx:latest’ locally
latest: Pulling from library/nginx
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: no matching manifest for windows/amd64 in the manifest list entries.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.
PS C:\Program Files\Docker\Docker\resources\bin>
I have executed both in Windows Powershell as an Admin. What am I doing wrong? Any help would be appreciated.