-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install docker client in Windows images #8
Comments
All this seems to need to install Docker for Windows is a:
The first line may not be needed but I tried to build an image based off of the |
So I've added these lines to Dockerfile and built and image and it worked. I'm using teamcity-minimal-agent:latest-windowsservercore-ltsc2016:
When I try building anything on the teamcity agent it complains that the daemon is not running. I've gone into the container with `PS C:> Start-Service Docker -PassThru Start-Service : Failed to start service 'Docker (Docker)'.
Anyone know what I'm doing wrong? Do I need to put the Start-Service call in my Dockerfile before the agent start? |
I tried putting the Start-Service call in my Dockerfile, same results... I tried A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly.` |
Are there any updates ... maybe eap? Will this also work with a mounted daemon as the linux images I'm trying to run the following:
|
@charley-sound, Windows containers does not support Docker In Docker mode, the only possible way is to configure docker client in container to use docker server on docker host or another machine via tcp endpoint:
|
I don't have a %docker-host% variable setup. Should that just be the IP of the host machine? |
So I can't seem to connect to the host machine's docker daemon. I get this error: error during connect: Get http://myhostdns:2375/v1.30/containers/json: dial tcp myhostip:2375: connectex: No connection could be made because the target machine actively refused Windows Firewall is turned off on the host with the same results. |
@charley-sound You need to make the daemon on your host listen to TCP connections. |
Currently no docker executable included in them.
Possible ways to get access to the docker daemon in container: https://github.com/JetBrains/teamcity-docker-agent#expose-docker-engine-to-container
The text was updated successfully, but these errors were encountered: