Tag: windows

docker run -v does not work on Windows using docker-toolbox

When running following command from a CoreOS VM it works as expected: docker run –rm -v $PWD:/data composer init What it will do is initialize the composer.json file in the current working directory by using the docker volume mapping as specified. The docker container basically has the php tool composer installed and will run that […]

Docker localhost process not working on Windows

I am using Docker Quickstart Terminal to run a docker container. The container should work on port 8088 of localhost: docker run -it –name myContainer -p 8088:8088 However, when I go to localhost:8088 or I can’t find any process running. This works on OSX. Why is this not working on Windows?

boot2docker vm forgets changes when restarted

Basically any changes I make while SSHed into the VM are lost at restart of the VM. I am assuming the problem is associated with the error when I stop the VM. C:\Users\Tom>boot2docker stop error in run: Failed to stop machine “boot2docker-vm”: exit status 1 But, I may just be doing something dumb. The sequence […]

DOCKER_HOST environment variable on windows

I’m running Docker 1.12.0 on a Windows 10 machine. I’m developing a Java program, using Maven 3.3.9 as a dependency manager. I have a maven docker plugin (https://github.com/fabric8io/docker-maven-plugin), which gives the following error on clean install. [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.15.16:build (docker-build-start) on project integration-test: Execution docker-build-start of goal io.fabric8:docker-maven-plugin:0.15.16:build failed: No <dockerHost> or […]

Where are docker images and containers stored when we use it with Windows?

NOTE: Am super new to both Windows and Docker The tutorial I’ve been using says that they are under /var/lib/docker/containers if we’re using Linux, but I can’t seem to find that on my Windows machine. Thanks!

Microsoft Compiler in Docker

I want to setup a Docker container to support builds of the code base which is entirely written in C++, and the generated application runs on Windows only. For this purpose, I need to setup a container replicating our current build environment to support the builds. I need to create a Dockerfile something like below […]

Is it possible to access a hardware device with a docker image under Windows?

Recently, a native docker client for Windows was released (>= Windows 7). I wonder: is it possible to forward access to physical devices, running Windows as host? With a *nix host, this seems to be possible with the following syntax: docker run -t -i –device=/dev/ttyUSB0 ubuntu bash (as proposed here) which would forward the USB […]

boot2docker on windows – Can't access exposed port

I’ve installed boot2docker (full install) on Windows 7 and am trying to run the container port redirection demo: docker run –rm -i -t -p 80:80 nginx Which looks like it isn’t quite finishing properly, it just stops and looks like this: When I open another git bash shell and run boot2docker ip I get, […]

Boot2docker/Windows: can't run bash on Ubuntu container

I’m working through “The Docker Book”, am on chapter 3, installing and running an Ubuntu container. I’m on Windows 7.1, using Boot2Docker. Here’s what happens when I try to run it (this is the second attempt, so it already has a local copy of the image): $ docker run -i -t ubuntu /bin/bash exec: “C:/Program […]

Displaying GUI Application in Docker Container on Windows 10 Host Without Linux Servers

I’m trying to dockerize a Windows 10 GUI application with a Windows 10 host, in a container that has microsoft/nanoserver as the base. Currently I have the application installed in the same directory as my dockerfile, I add it to my docker context and run it no problem, except that the GUI never displays. It […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.