Jib should read the Docker environment variables and daemon.json
See original GitHub issueJib should seed itself with Docker configuration when available.
Environment
The docker-provided inspectDockerImage
tool supports the following environment variables:
DOCKER_REGISTRY_AUTH_ENDPOINT
, defaults tohttps://registry-1.docker.io
DOCKER_REGISTRY_API_ENDPOINT
, defaults tohttps://auth.docker.io
daemon.json
The Docker daemon.json
file configures:
insecure-registries
a set of registries allowed to be HTTP-onlyregistry-mirrors
: a set of mirrors to consult, sometimes used to reference country-level mirrors like Docker’s China Mirror.
The daemon.json file lives at:
/etc/docker/daemon.json
on Linux%ProgramData%\docker\config\daemon.json
on Windows~/.docker/daemon.json
on macOS (not documented, but it’s there)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Is it possible to use environment variables inside docker ...
We are using registry_mirrors & insecure_registries options in docker daemon.json file. We would like to stop setting the location of the ...
Read more >Docker daemon configuration overview
This page shows how to customize the daemon configuration. Configure the Docker daemon . There are two ways to configure the Docker daemon:...
Read more >Use Docker to build Docker images - GitLab Docs
To make Docker available in the context of the image, you will need to mount /var/run/docker.sock into the launched containers. To do this...
Read more >Job definition parameters - AWS Batch
The environment variables to pass to a container. ... This string is passed directly to the Docker daemon. ... Valid values: READ |...
Read more >How to Resolve the “cannot connect to the Docker daemon ...
Ownership issues can also extend to files used by your Docker build. If Docker needs to use a file it can't access, this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@PavelGloba to better support the users hitting the Docker Hub rate limiting, we implemented the registry mirror feature, which is now live with the Jib 2.8.0 release. Check out this FAQ to learn how to configure it.
Closing issue as
registry-mirror
support is now available in the plugins and Jib CLI through a global config file (see README). Please re-open if this feature is still relevant.