# Wandb job with docker - environment variable

**URL:** <https://community.wandb.ai/t/wandb-job-with-docker-environment-variable/5862>\
**Category:** Computer Vision Talks\
**Tags:** wandb\
**Created:** [February 7, 2024, 2:21pm UTC](https://community.wandb.ai/t/wandb-job-with-docker-environment-variable/5862 "2024-02-07T14:21:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haddadomar02](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@haddadomar02](https://community.wandb.ai/u/haddadomar02)\
**Post date:** [February 7, 2024, 2:21pm UTC](https://community.wandb.ai/t/wandb-job-with-docker-environment-variable/5862/1 "2024-02-07T14:21:38Z")

</div>

Hello,

I’m currently working with a deep learning framework for segmentations, and I wanted to integrate wandb to automate jobs, so I followed the wandb documentation with the docker approach.

To do this, I created the docker image, then tested it locally (without wandb) and it worked very well.

Then, to ensure wandb integration, I carried out these steps:  
wandb job create --project “Hippocampus\_seg” --entity “ip\_team” --name “training\_job” image nn\_mlops\_image:latest

(The job has been created on my wandb UI)

As my framework needs environment variables in order to read and write to directories on my machine, I need to define volumes, so the command I used is as follows:

docker run -it --gpus all --ipc=host --name nn\_mlops\_container `-e WANDB_PROJECT="Hippocampus_seg"`  
-e WANDB\_ENTITY=“ip\_team” `-e WANDB_API_KEY="xxx"`  
-e WANDB\_DOCKER=“nn\_mlops\_image:latest” `-v "/c/Users/mick.jordan/dataset/aaa:/aaa"`  
-v “/c/Users/mick.jordan/dataset/bbb:/bbb” `-v "/c/Users/mick.jordan/dataset/ccc:/ccc"`  
nn\_mlops\_image:latest

Then, on wandb I configured the queue and the agent

When I run the job on wandb: My framework which is Dockerized, it returns me an error: it cannot find the environment variables :  
aaa:/aaa  
bbb:/bbb  
ccc:/ccc"

And on the wandb UI, I got this:

\<?xml version='1.0' encoding='UTF-8'?\>`AccessDenied`Access denied.

> ****
>
> Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).
