# Docker save post processor | Repository + Tag Name

**URL:** <https://discuss.hashicorp.com/t/docker-save-post-processor-repository-tag-name/42474>\
**Category:** Packer\
**Created:** [July 26, 2022, 4:24pm UTC](https://discuss.hashicorp.com/t/docker-save-post-processor-repository-tag-name/42474 "2022-07-26T16:24:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leroy.luff](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/leroy.luff/32/16350_2.png) [@leroy.luff](https://discuss.hashicorp.com/u/leroy.luff)\
**Post date:** [July 26, 2022, 4:24pm UTC](https://discuss.hashicorp.com/t/docker-save-post-processor-repository-tag-name/42474/1 "2022-07-26T16:24:08Z")

</div>

Hello,

I want to preserve the Repository Name and Tag when I save a docker Image that I am building with Packer.

> **[Packer by HashiCorp](https://www.packer.io/plugins/post-processors/docker/docker-save)**
>
> The Packer Docker Save post-processor takes an artifact from the docker builder
> that was committed and saves it to a file. This is similar to exporting the
> Docker image directly from the builder, except that it preserves the hierarchy
> of images and...

Thanks

---

<div class="post-metadata">

**Author:** ![brucellino1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/brucellino1/32/16147_2.png) [@brucellino1](https://discuss.hashicorp.com/u/brucellino1)\
**Post date:** [July 28, 2022, 7:03am UTC](https://discuss.hashicorp.com/t/docker-save-post-processor-repository-tag-name/42474/2 "2022-07-28T07:03:49Z")

</div>

This is possible with the post-processors. Set the `repository` flag on the [`docker-tag`](https://www.packer.io/plugins/post-processors/docker/docker-tag) post-processor and the `login_server` option in the `docker-push` postprocessor if you need to push it to a specific registry.

Have you tried this? What errors are you getting, if any?
