You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems unnecessarily cumbersome to set up a project to be build both from linux hosts (with local docker running unsecured) and boot2docker.
The workaround for unsecured docker in the readme (an explicit http://localhost:2375 host entry in the configuration) overrides how boot2dockers docker host is discovered by environment variables. The best solution I've found is to put the http://localhost:2375 host value in a maven property, in a profile that's only activated when the DOCKER_HOST environment variable isn't set. E.g.:
If the plugin defaulted to http when the host isn't actively set anywhere and the DOCKER_TLS_VERIFY environment variable isn't set to "1", I think this would cover most use cases, but I'm not sure I have the big picture.
The text was updated successfully, but these errors were encountered:
That could be a solution, if no other users of docker-java depend on the current functionality. In any event, the team I'm on decided to make everybody set the environment variable, even on linux, which solves the problem, without the maven profile trick.
It seems unnecessarily cumbersome to set up a project to be build both from linux hosts (with local docker running unsecured) and boot2docker.
The workaround for unsecured docker in the readme (an explicit http://localhost:2375 host entry in the configuration) overrides how boot2dockers docker host is discovered by environment variables. The best solution I've found is to put the http://localhost:2375 host value in a maven property, in a profile that's only activated when the DOCKER_HOST environment variable isn't set. E.g.:
Is there something I'm missing?
If the plugin defaulted to http when the host isn't actively set anywhere and the DOCKER_TLS_VERIFY environment variable isn't set to "1", I think this would cover most use cases, but I'm not sure I have the big picture.
The text was updated successfully, but these errors were encountered: