# Docker question - Sharing the Source Code with a Container

**URL:** <https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042>\
**Category:** Uncategorized\
**Created:** [April 11, 2021, 8:07am UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042 "2021-04-11T08:07:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andysong666](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/andysong666/32/1353_2.png) [@andysong666](https://forum.codewithmosh.com/u/andysong666)\
**Post date:** [April 11, 2021, 8:07am UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042/1 "2021-04-11T08:07:28Z")

</div>

I am doing the docker course and currently, I am doing the 11- Sharing the Source Code with a Container in Working with Containers section.

I did the same thing as Mosh did docker run -d -p 5001:3000 -v $(pwd):/app react-app, however I got sh: react-scripts: not found error and saying my node\_modules is missing. So I can not start my container, anyone has this problem?

I am wondering did I do something wrong? why I cannot get the same result as Mosh any help please.

---

<div class="post-metadata">

**Author:** ![leandro.mana](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@leandro.mana](https://forum.codewithmosh.com/u/leandro.mana)\
**Post date:** [April 16, 2021, 2:48am UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042/2 "2021-04-16T02:48:43Z")

</div>

Hi Andy,

Check if the **node\_modules** folder exists on **pwd** folder.

If didn’t work:

1. Which OS did you installed Docker?
2. Could you send the container log?

> docker logs -f \<container\_id\>

I’ve just solve a problem with this same lesson. In one of many tries I think I got this error, and I am using Windows 10.

---

<div class="post-metadata">

**Author:** ![jeffdess](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jeffdess/32/1427_2.png) [@jeffdess](https://forum.codewithmosh.com/u/jeffdess)\
**Post date:** [April 19, 2021, 2:07am UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042/3 "2021-04-19T02:07:35Z")

</div>

I had the same issue, that’s because some packages are missing from the dev machine. Just perform `npm install` on your dev directory and that should solve it.

---

<div class="post-metadata">

**Author:** ![ibrahimabiram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ibrahimabiram/32/1432_2.png) [@ibrahimabiram](https://forum.codewithmosh.com/u/ibrahimabiram)\
**Post date:** [April 20, 2021, 2:08pm UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042/4 "2021-04-20T14:08:12Z")

</div>

Hello,

I just encountered the same problem as @andysong666  
@leandro.mana, I’m using ubuntu 20.04 and here is my container log :

> react-app@0.1.0 start /app  
> react-scripts start
> 
> sh: react-scripts: not found  
> npm ERR! code ELIFECYCLE  
> npm ERR! syscall spawn  
> npm ERR! file sh  
> npm ERR! errno ENOENT  
> npm ERR! react-app@0.1.0 start: `react-scripts start`  
> npm ERR! spawn ENOENT  
> npm ERR!  
> npm ERR! Failed at the react-app@0.1.0 start script.  
> npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
> npm WARN Local package.json exists, but node\_modules missing, did you mean to install?

---

<div class="post-metadata">

**Author:** ![ibrahimabiram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ibrahimabiram/32/1432_2.png) [@ibrahimabiram](https://forum.codewithmosh.com/u/ibrahimabiram)\
**Post date:** [April 20, 2021, 6:30pm UTC](https://forum.codewithmosh.com/t/docker-question-sharing-the-source-code-with-a-container/4042/5 "2021-04-20T18:30:22Z")

</div>

It worked for me.  
Thanks a lot @jeffdess
