# How to use Docker with remote storage

**URL:** <https://forum.rasa.com/t/how-to-use-docker-with-remote-storage/14208>\
**Category:** Tutorials, Resources & Videos\
**Created:** [August 12, 2019, 3:25am UTC](https://forum.rasa.com/t/how-to-use-docker-with-remote-storage/14208 "2019-08-12T03:25:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felaray](https://avatars.discourse-cdn.com/v4/letter/f/e36b37/32.png) [@felaray](https://forum.rasa.com/u/felaray)\
**Post date:** [August 12, 2019, 3:25am UTC](https://forum.rasa.com/t/how-to-use-docker-with-remote-storage/14208/1 "2019-08-12T03:25:47Z")

</div>

I am a newbie and already know how RASA works. But I want to use a container with Azure remote storage, but it doesn’t work.

I added environment variables to the dockerfile and built the image.

============= dockerfile =====================

# Extend the official Rasa SDK image

FROM rasa/rasa:latest

# Add a custom system library (e.g. git)

RUN apt-get update && \

apt-get install -y git

# Add a custom python library (e.g. jupyter)

RUN pip install jieba

RUN pip install azure-storage-blob

# ENV for remote

ENV AZURE\_CONTAINER=rasa

ENV AZURE\_ACCOUNT\_NAME=name

ENV AZURE\_ACCOUNT\_KEY=key

====================== command ==========================

docker run felaray/rasazhtw:5 run -m nlu-20190808-072018.tar.gz --remote-storage azure

======================= log file =========================

2019-08-12 10:47:40,374 [INFO] Starting Rasa server on [http://localhost:5005](http://localhost:5005)

2019-08-12 10:47:40,485 [ERROR] Could not load model due to You need to provide an account name and either an account\_key or sas\_token when creating a storage service…

2019-08-12 10:47:40,492 [ERROR] Experienced exception while trying to serve Traceback (most recent call last): File “c:\program files\python37\lib\site-packages\sanic\app.py”, line 1096, in run serve(\*\*server\_settings) File “c:\program files\python37\lib\site-packages\sanic\server.py”, line 742, in serve trigger\_events(before\_start, loop) File “c:\program files\python37\lib\site-packages\sanic\server.py”, line 604, in trigger\_events loop.run\_until\_complete(result) File “c:\program files\python37\lib\asyncio\base\_events.py”, line 579, in run\_until\_complete return future.result() File “c:\program files\python37\lib\site-packages\rasa\core\run.py”, line 218, in load\_agent\_on\_start action\_endpoint=endpoints.action, File “c:\program files\python37\lib\site-packages\rasa\core\agent.py”, line 253, in load\_agent model\_server=model\_server, File “c:\program files\python37\lib\site-packages\rasa\core\agent.py”, line 939, in load\_from\_remote\_storage persistor = get\_persistor(remote\_storage) File “c:\program files\python37\lib\site-packages\rasa\nlu\persistor.py”, line 28, in get\_persistor os.environ.get(“AZURE\_ACCOUNT\_KEY”), File “c:\program files\python37\lib\site-packages\rasa\nlu\persistor.py”, line 226, in **init** endpoint\_suffix=“[core.windows.net](http://core.windows.net)”, File “C:\Users\vivat\AppData\Roaming\Python\Python37\site-packages\azure\storage\blob\blockblobservice.py”, line 150, in **init** custom\_domain, request\_session, connection\_string, socket\_timeout, token\_credential) File “C:\Users\vivat\AppData\Roaming\Python\Python37\site-packages\azure\storage\blob\baseblobservice.py”, line 213, in **init** socket\_timeout=socket\_timeout) File “C:\Users\vivat\AppData\Roaming\Python\Python37\site-packages\azure\storage\common\_connection.py”, line 126, in get\_service\_parameters raise ValueError(\_ERROR\_STORAGE\_MISSING\_INFO) ValueError: You need to provide an account name and either an account\_key or sas\_token when creating a storage service.

=================================================

I have tried it for two days, please help me if you can. thx!
