# Wandb to download models to a container

**URL:** <https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738>\
**Category:** W&B Help\
**Created:** [January 23, 2023, 11:43pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738 "2023-01-23T23:43:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinashaw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/kevinashaw/32/1016_2.png) [@kevinashaw](https://community.wandb.ai/u/kevinashaw)\
**Post date:** [January 23, 2023, 11:43pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738/1 "2023-01-23T23:43:33Z")

</div>

We want to containerize our models using a CI/CD pipeline in bitbucket. This means i need to install and run wandb in a temporary/interim container just long enough to download several models. Then the models can be copied into a container using a DockerFile. Is there a recommended method for setting up wandb for this scenario?

---

<div class="post-metadata">

**Author:** ![ramit\_goolry](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@ramit\_goolry](https://community.wandb.ai/u/ramit_goolry)\
**Post date:** [January 25, 2023, 6:32pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738/2 "2023-01-25T18:32:33Z")

</div>

Hey @kevinashaw,

The easiest and best way here is probably to use something like `wandb artifact get` in your Dockerfile to download the artifact into your container. Here are some [docs](https://docs.wandb.ai/ref/cli/wandb-artifact/wandb-artifact-get) to get you started! Let me know if this helps or if I can do anything else.

Thanks,  
Ramit

---

<div class="post-metadata">

**Author:** ![kevinashaw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/kevinashaw/32/1016_2.png) [@kevinashaw](https://community.wandb.ai/u/kevinashaw)\
**Post date:** [January 25, 2023, 7:11pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738/3 "2023-01-25T19:11:37Z")

</div>

This is very helpful.  
I had been thinking too much of working Python and was unaware of the CLI interface.  
Thank you. -K

---

<div class="post-metadata">

**Author:** ![ramit\_goolry](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@ramit\_goolry](https://community.wandb.ai/u/ramit_goolry)\
**Post date:** [January 26, 2023, 5:43pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738/4 "2023-01-26T17:43:44Z")

</div>

Of course! Is there anything else I can help out with?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [March 27, 2023, 5:44pm UTC](https://community.wandb.ai/t/wandb-to-download-models-to-a-container/3738/5 "2023-03-27T17:44:33Z")

</div>

Closed on March 27, 2023, 5:44pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
