Reputation: 718
I'm trying to fiddle with the Microsoft containers for docker and am running in to a problem when I want to actually issue commands to my containers. I have done the following to get here:
1.12.3-beta30.1 (8711)
) so that I can "switch to windows containers"Now, when I go to execute docker run -it microsoft/nanoserver cmd
This is what powershell looks like:
It does the same thing for server core or nano server. It never actually launched a command prompt. It just hangs here and I can't type anything. Here is more info for my images:. So, how can I actually begin execution commands on my container?
UPDATE: I think my actual problem is that I cannot attach to the container. I started over and did the following to figure this out:
docker run microsoft/windowsservercore
docker ps
to get the container namedocker exec [container_name] cmd
docker exec [container_name] ping google.com
It pings! hmmm
docker exec -it [container_name] cmd
Hangs. No prompt is ever launched.
docker attach [container_name]
Upvotes: 5
Views: 9490
Reputation: 718
I've updated to the latest microsoft images as of 12-14-2016 and now everything works find. I can docker exec -it [machine-name] powershell
and I get a terminal I can interact with!
Upvotes: 8
Reputation: 3579
This is a problem with Windows version. You can check your windows version by
Run -> winver.exe
You have to update to build no. 14393.576 (latest as of now), this issue will be solved
Upvotes: 1