rest - Docker maven plugin -


docker plugin found (spotify/docker-maven-plugin) use native docker application, far understand docker rest api client "redirects" commands docker daemon process. it's true in case if use docker on windows machine , docker daemon works on linux in virtual box.

so, docker-maven-plugin exist doesn't require native docker application , "talking" docker daemon without intermediaries?

it doesn't require native docker application, knowing docker daemon is.

docker-maven-plugin

per documentation:

by default plugin try connect docker on localhost:2375. set docker_host environment variable connect elsewhere.

docker_host=tcp://<host>:2375 

this how client knows docker daemon is. docker-maven-plugin respects (and other) docker environment variables know docker resides, whether native, in vm running on hypervisor virtualbox locally, or on remote server.

docker machine

if you're using docker machine, these environment variables set when run :

$ docker-machine env default export docker_tls_verify="1" export docker_host="tcp://172.16.62.130:2376" export docker_cert_path="/users/<yourusername>/.docker/machine/machines/default" export docker_machine_name="default" # run command configure shell: # eval "$(docker-machine env default)"  $ eval "$(docker-machine env default)" 

the documentation docker machine:

create & connect docker machine

docker windows

if you're on windows, may find helpful use native client docker give more native experience.

docker windows


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -