<blockquote>
<p><code>NETWORK=testnet docker-compose up</code></p>
</blockquote>
<p>This syntax is assuming a bash or similar shell. It defines an environment variable and runs the command with that variable exported. It's similar to (but not the same as) running:</p>
<pre class="lang-shell prettyprint-override"><code>export NETWORK=testnet
docker-compose up
</code></pre>
<p>Since you appear to be running this on Windows, I believe the equivalent there is:</p>
<pre><code>set NETWORK=testnet
docker-compose up
</code></pre>

CC BY-SA 4.0
2023-01-11T06:02:11.607Z
That makes sense now. I was also able to run the code successfully. Thank you for your help, @BMitch!
J.O.C
CC BY-SA 4.0
2023-01-10T13:54:19.777Z
2023-01-10T13:54:19.777Z
BMitch
<p>Do you think these commands are valid?</p>
<pre><code>wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up
</code></pre>
<p>The first command downloads the <code>.yml</code> file. However, when I try to run the second command, node complains about <code>NETWORK=testnet</code> not being a valid. Here is the error printout:</p>
<p><a href="https://i.sstatic.net/f2Nt5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/f2Nt5.png" alt="enter image description here" /></a></p>
<p>Is there anybody here who could point out what I am not understanding and make it work? The link to this particular set of commands can be found here:
<a href="https://developers.cardano.org/docs/get-started/cardano-wallet-js/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/cardano-wallet-js/</a></p>

CC BY-SA 4.0
2023-01-10T01:06:16.363Z
Yes, the commands are valid when run in a bash shell. Please show your actual output and errors. It's difficult to debug "something like that".
BMitch
CC BY-SA 4.0
2023-01-10T01:52:33.550Z
Hey @BMitch, thanks for dropping by. I updated the question to include the error printout. So, basically, when I run "NETWORK=testnet docker-compose up" in a PowerShell terminal, I get an error. Your help is greatly appreciated. Thank you!
J.O.C
CC BY-SA 4.0
2023-01-10T02:36:15.250Z
@BMitch, ahhh. Nevermind. It runs on ubuntu. However, the compose file is invalid. So, the commands work but the file is invalid. Thanks!
J.O.C
CC BY-SA 4.0
2023-01-10T13:55:25.573Z
[Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551)
BMitch
<docker><docker-compose>
Setting the network using docker-compose
J.O.C
# Setting the network using docker-compose

(Asked by: username_0 on 2023-01-09)

Do you think these commands are valid?
wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up

The first command downloads the .yml file. However, when I try to run the second command, node complains about NETWORK=testnet not being a valid. Here is the error printout:

Is there anybody here who could point out what I am not understanding and make it work? The link to this particular set of commands can be found here:
https://developers.cardano.org/docs/get-started/cardano-wallet-js/

**Tags:** docker, docker-compose

> **Comments:**
> **username_1**: Yes, the commands are valid when run in a bash shell. Please show your actual output and errors. It's difficult to debug "something like that".  
> **username_0**: Hey @username_1, thanks for dropping by. I updated the question to include the error printout. So, basically, when I run "NETWORK=testnet docker-compose up" in a PowerShell terminal, I get an error. Your help is greatly appreciated. Thank you!  
> **username_0**: @username_1, ahhh. Nevermind. It runs on ubuntu. However, the compose file is invalid. So, the commands work but the file is invalid. Thanks!  
> **username_1**: [Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551)  

---

## 1 answers

### Answer by username_1 on 2023-01-10. Score: 1

NETWORK=testnet docker-compose up

This syntax is assuming a bash or similar shell. It defines an environment variable and runs the command with that variable exported. It's similar to (but not the same as) running:
export NETWORK=testnet
docker-compose up

Since you appear to be running this on Windows, I believe the equivalent there is:
set NETWORK=testnet
docker-compose up

> **Comments:**
> **username_0**: That makes sense now. I was also able to run the code successfully. Thank you for your help, @username_1!  

---

