# Docker Authenticated Pulls in self-hosted runner

**URL:** <https://discuss.circleci.com/t/docker-authenticated-pulls-in-self-hosted-runner/48314>\
**Category:** Build Environment\
**Tags:** docker\
**Created:** [June 9, 2023, 1:25pm UTC](https://discuss.circleci.com/t/docker-authenticated-pulls-in-self-hosted-runner/48314 "2023-06-09T13:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pic](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pic/32/33149_2.png) [@pic](https://discuss.circleci.com/u/pic)\
**Post date:** [June 9, 2023, 1:25pm UTC](https://discuss.circleci.com/t/docker-authenticated-pulls-in-self-hosted-runner/48314/1 "2023-06-09T13:25:13Z")

</div>

We have been using Docker Authenticated Pulls to pull from our private registry and they work all OK.  
Now we are trying to use a self-hosted runner and it seems that the `auth` configuration is ignored there.  
Is there any documentation that shows how to use “Docker Authenticated Pulls” in a self-hosted runner? Are environment variables defined on CircleCI available in the self hosted runner?  
Thanks

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [June 9, 2023, 2:11pm UTC](https://discuss.circleci.com/t/docker-authenticated-pulls-in-self-hosted-runner/48314/2 "2023-06-09T14:11:58Z")

</div>

Can you post your config.yml as it is not clear how you are trying to combine a self-hosted runner with a Docker Authenticated Pull image?

The docs for self-hosted runners are here

> **[CircleCI’s self-hosted runner overview - CircleCI](https://circleci.com/docs/runner-overview/)**
>
> Learn how CircleCI's self-hosted runners enable you to use your own infrastructure for running jobs.

I think for what you are trying to do the following text provides an answer

```auto
Exclusively running jobs in this manner sacrifices several benefits of a container-based solution that are afforded on CircleCI’s cloud platform when using the Docker executor:

    The ability to seamlessly use custom Docker images during job execution

```

Instead, you just log in and use Docker Hub via shell commands. If you look at the output of the “Preparing environment variables” step in your current failed build you should see that the environment variables are available.

---

<div class="post-metadata">

**Author:** ![pic](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pic/32/33149_2.png) [@pic](https://discuss.circleci.com/u/pic)\
**Post date:** [June 10, 2023, 1:58pm UTC](https://discuss.circleci.com/t/docker-authenticated-pulls-in-self-hosted-runner/48314/3 "2023-06-10T13:58:56Z")

</div>

Thanks for the help.  
It’s actually working smoothly after I’ve figured out a mistake in the configuration.
