Skip to content

Create Github Action that uses a private Docker image #26399

Discussion options

You must be logged in to vote

@carminedamico,

Yes. Generally the base image used in a Dockerfile should be public.
When using a Docker container action in the workflow, GitHub will do the following things during the workflow run:

  • Pull the base image from the Docker registry.
  • Based on the base image, build the new image according to other steps and configurations set in Dockerfile.
  • Startup the container and execute the Docker container action.

If you use a private image as the base image for the Docker container action, when pulling the base image, GitHub need to login the Docker registry at first authenticating with the user and password that can access the private Docker registry.

When you use this Docker container…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@piotrekkr
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants