Docker Community Forums

Share and learn in the Docker community.

Problem running container on Windows 10 home edition after hello world

I can download mssql image with docker run command as follows:
docker@default:~ docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Pwd12345!" -p 11433:1433 -d mcr.microsoft.com/mssql/server:2017-latest Unable to find image 'mcr.microsoft.com/mssql/server:2017-latest' locally 2017-latest: Pulling from mssql/server 59ab41dd721a: Pull complete 57da90bec92c: Pull complete 06fe57530625: Pull complete 5a6315cba1ff: Pull complete 739f58768b3f: Pull complete 3a58fde0fc61: Pull complete 89b44069090d: Pull complete 05f6e689e8fa: Pull complete bcf981cef1a8: Pull complete Digest: sha256:eb1fc9a73c9c4662d3b468b635b9be34a48724100294ac20348ac0e93c55228d Status: Downloaded newer image for mcr.microsoft.com/mssql/server:2017-latest 7269b0a42b74c5a4d9038e2c40fe86e03ae1b327ff5f6422fd9300cedfe68919 docker@default:~ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7269b0a42b74 mcr.microsoft.com/mssql/server:2017-latest “/opt/mssql/bin/nonr…” 12 seconds ago Exited (1) 11 seconds ago admiring_einstein
docker@default:~ docker start 726 726 docker@default:~ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7269b0a42b74 mcr.microsoft.com/mssql/server:2017-latest “/opt/mssql/bin/nonr…” About a minute ago Exited (1) 5 seconds ago admiring_einstein
docker@default:~ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7269b0a42b74 mcr.microsoft.com/mssql/server:2017-latest "/opt/mssql/bin/nonr…" About a minute ago Exited (1) 20 seconds ago admiring_einstein docker@default:~ docker run 726
Unable to find image ‘726:latest’ locally
docker: Error response from daemon: pull access denied for 726, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.

But when I try to run it, I can not. I have tried it from the Power Shell as well as a ssh session into the Docker VM. What to do?

This container exits immediately. You have to look into the log for the reason. Maybe you could start it in the foreground (without -d flag) to get the infos directly.

1 Like

Hi tekki
Where are the logs please? I was able to start the container, but I can not connect to it. My setup is on a Windows 10 home edition with docker-machine, and Virtual Box. I used “docker start -a” to start the image. After that it just starts with docker run command as follows: "docker run -e “ACCEPT_EULA=Y” -e “SA_PASSWORD=Removed” -p 11433:1433 -d mcr.microsoft.com/mssql/server:2017-latest " Here is the output of docker ps -a:
PS C:\Windows\system32> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1fbe9f450174 mcr.microsoft.com/mssql/server:2017-latest “/opt/mssql/bin/nonr…” 2 minutes ago Up 2 minutes 0.0.0.0:11433->1433/tcp youthful_shockley
I see port 11433 open when I look at netstat.
Proto Local Address Foreign Address State
TCP 127.0.0.1:80 DESKTOP-PN01RRR:0 LISTENING
TCP 127.0.0.1:11433 DESKTOP-PN01RRR:0 LISTENING
Thanks

I installed Docker using Chocolaty package manager. I sshed into the VM but I do not see any directory hierarchy. Here are some of the directories in windows which contain my Docker files:
PS C:\programdata\chocolatey> cd .\lib
PS C:\programdata\chocolatey\lib> ls

Directory: C:\programdata\chocolatey\lib

Mode LastWriteTime Length Name


d----- 4/14/2020 10:35 AM chocolatey
d----- 4/14/2020 3:31 PM docker-cli
d----- 4/14/2020 3:31 PM docker-compose
d----- 4/14/2020 1:50 PM docker-machine

PS C:\programdata\chocolatey\lib>

I connected successfully.
Thank you so much.