Ask Your Question
3

What is the correct method of accessing a private docker registry within a docker container while connected to a VPN?

asked 2021-05-21 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-01-14 07:00:00 +0000

devzero gravatar image

The correct method of accessing a private docker registry within a docker container while connected to a VPN is as follows:

  1. Connect to the VPN from within the docker container.
  2. Add the IP of the private docker registry to the docker daemon's insecure registry list.
  3. Restart the docker daemon.
  4. Authenticate to the private docker registry using the appropriate credentials.
  5. Pull or push the desired image from or to the private docker registry.

Note: In order to avoid exposing the insecure registry list, it is recommended to use a secure registry or a VPN connection with proper security measures in place.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-21 11:00:00 +0000

Seen: 10 times

Last updated: Jan 14 '22