-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How to use remote docker daemon? #2313
Comments
You should be able to pass Docker-specific environment variables like jib {
dockerClient.environment = [ DOCKER_HOST: '...', DOCKER_TLS_VERIFY: '...' ]
} I have no experience using a remote Docker engine. I wonder if this will help: https://gist.github.com/kekru/4e6d49b4290a4eebc7b597c07eaf61f2#set-env-var-linux-mac-windows I'm curious if this actually works well. Could you update here after trying it? |
For Maven, it should be like <dockerClient>
<environment>
<DOCKER_HOST>...</DOCKER_HOST>
</environment>
</dockerClient> See https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#dockerclient-object |
This actually works.
|
This is my pom.xml
When I run
I want to push the image of this java application to the remote docker daemon, and let it run remotely as a container. I don't want to install anything about docker locally. When I installed the Docker-CLI,it can push the image to the remote docker daemon。Why spotify/dockerfile-maven and fabric8io/docker-maven-plugin don't need Docker-CLI? |
@swang-harbin unfortunately for now, Jib requires executing a Docker client (the I believe you are already aware of this, but you just need to download and unzip a Docker client ( |
Environment:
maven app
: win10,remote docker daemon
: centos7Description of the issue:
I want to use the remote docker daemon to pull and upload images. The
dockerclient
Property in the document is configured as a daemon into the local path. If I want to use a remote one, how do I configure it?The text was updated successfully, but these errors were encountered: