# Get immutable image from Dynatrace managed

**URL:** <https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945>\
**Category:** Container platforms\
**Tags:** openshift, dynatrace-managed, oneagent\
**Created:** [March 29, 2021, 10:42am UTC](https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945 "2021-03-29T10:42:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nickolay](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Nickolay](https://community.dynatrace.com/u/Nickolay)\
**Post date:** [March 29, 2021, 10:42am UTC](https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945/1 "2021-03-29T10:42:04Z")

</div>

Good day!

I tried to get the immutable image following the instructions [here](https://www.dynatrace.com/support/help/technology-support/cloud-platforms/openshift/other-deployments-and-configurations/store-dynatrace-images-in-private-registries-openshift/?use-an-immutable-oneagent-image%3C-%3Euse-a-lightweight-oneagent-image=use-an-immutable-oneagent-image), but there was an unexpected problem.

_#docker pull [xxxxx.dynatrace-managed.com/linux/oneagent:1.209.70](http://xxxxx.dynatrace-managed.com/linux/oneagent:1.209.70)_  
_Error response from daemon: Head [https://xxxxx.dynatrace-managed.com/v2/linux/oneagent/manifests/1.209.70:](https://xxxxx.dynatrace-managed.com/v2/linux/oneagent/manifests/1.209.70:) no basic auth credentials_

When i tried to log in via “docker login” with valid user credential, got the following error:

_Error response from daemon: login attempt to [https://xxxxx.dynatrace-managed.com/v2/](https://xxxxx.dynatrace-managed.com/v2/) failed with status: 401 Unauthorized_

So question is, how to log in to the dynatrace correctly through ‘docker login’?

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 29, 2021, 12:35pm UTC](https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945/2 "2021-03-29T12:35:29Z")

</div>

Hi&nbsp;[@Nickolay](https://community.dynatrace.com/user/40842)

You will need to login with the follows:

![Yosi_Neuman_2-1617021230541.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/a/2a64228ef8e451dece23f16f4d741492722ba9f5.png)

 ![Yosi_Neuman_4-1617021258642.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7741197fb5af4f4b6adce241592068b988dd3939.png)

Taken from documentation regrading&nbsp;[Container build-time injection](https://www.dynatrace.com/support/help/technology-support/cloud-platforms/kubernetes/other-deployments-and-configurations/deploy-oneagent-on-kubernetes-for-application-only-monitoring/#expand-container-build-time-injection-3532) (step 1&2)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Nickolay](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Nickolay](https://community.dynatrace.com/u/Nickolay)\
**Post date:** [March 30, 2021, 7:47am UTC](https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945/3 "2021-03-30T07:47:43Z")

</div>

Many Thanks, it`s solved the problem!

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 10, 2021, 8:05am UTC](https://community.dynatrace.com/t/get-immutable-image-from-dynatrace-managed/30945/4 "2021-12-10T08:05:58Z")

</div>

Just found a new , at least for me, documentation entry about&nbsp;[Store Dynatrace images in private registries in Kubernetes](https://www.dynatrace.com/support/help/shortlink/air-gapped-kubernetes)&nbsp;that explain this question.
