# Is possible to compile a smart contract (teal program) using docker sandbox? Or i need to run a node?

**URL:** <https://forum.algorand.co/t/is-possible-to-compile-a-smart-contract-teal-program-using-docker-sandbox-or-i-need-to-run-a-node/1629>\
**Category:** Uncategorized\
**Created:** [May 7, 2020, 11:17pm UTC](https://forum.algorand.co/t/is-possible-to-compile-a-smart-contract-teal-program-using-docker-sandbox-or-i-need-to-run-a-node/1629 "2020-05-07T23:17:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Enzo](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Mister\_Enzo](https://forum.algorand.co/u/Mister_Enzo)\
**Post date:** [May 7, 2020, 11:17pm UTC](https://forum.algorand.co/t/is-possible-to-compile-a-smart-contract-teal-program-using-docker-sandbox-or-i-need-to-run-a-node/1629/1 "2020-05-07T23:17:05Z")

</div>

I need to compile a teal program to understand how the smart contract world works. I try to compile with goal clerk compile command, but when i do it i receive an error: there isn’t . Thanks 🙂

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [May 7, 2020, 11:53pm UTC](https://forum.algorand.co/t/is-possible-to-compile-a-smart-contract-teal-program-using-docker-sandbox-or-i-need-to-run-a-node/1629/2 "2020-05-07T23:53:01Z")

</div>

What error do you get?

Inside sandbox, with `./sandbox enter`, I can do:

```auto
algorand@1116903d7142:/opt/algorand/node$ echo "// simple.teal
// Do not use this in a real application
int 0" > simple.teal

algorand@1116903d7142:/opt/algorand/node$ goal clerk compile simple.teal
simple.teal: KI4DJG2OOFJGUERJGSWCYGFZWDNEU2KWTU56VRJHITP62PLJ5VYMBFDBFE

algorand@1116903d7142:/opt/algorand/node$ ls simple.teal*
simple.teal simple.teal.tok

```

You can transfer files between sandbox and the outside as follows:

```auto
docker cp sandbox:/opt/algorand/node/simple.teal.tok simple.teal.tok

```

---

<div class="post-metadata">

**Author:** ![Mister\_Enzo](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Mister\_Enzo](https://forum.algorand.co/u/Mister_Enzo)\
**Post date:** [May 8, 2020, 4:28pm UTC](https://forum.algorand.co/t/is-possible-to-compile-a-smart-contract-teal-program-using-docker-sandbox-or-i-need-to-run-a-node/1629/3 "2020-05-08T16:28:07Z")

</div>

Thank you very much 🙂
