question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jib should read the Docker environment variables and daemon.json

See original GitHub issue

Jib should seed itself with Docker configuration when available.

Environment

The docker-provided inspectDockerImage tool supports the following environment variables:

  • DOCKER_REGISTRY_AUTH_ENDPOINT, defaults to https://registry-1.docker.io
  • DOCKER_REGISTRY_API_ENDPOINT, defaults to https://auth.docker.io

daemon.json

The Docker daemon.json file configures:

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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Feb 24, 2021

@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.

0reactions
mpeddada1commented, Aug 5, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found