# Docker

**URL:** https://forum.codewithmosh.com/c/docker/23.md

[Latest](https://forum.codewithmosh.com/latest.md) · [Categories](https://forum.codewithmosh.com/categories.md)

---

## [About the Docker category](https://forum.codewithmosh.com/t/about-the-docker-category/5748)

<div class="topic-metadata">

**Author:** [@Mosh](https://forum.codewithmosh.com/u/Mosh)\
**Replies:** 0

</div>

---

## [Is it make sense to buy mosh's docker course in 2026](https://forum.codewithmosh.com/t/is-it-make-sense-to-buy-moshs-docker-course-in-2026/73033)

<div class="topic-metadata">

**Author:** [@saibuHasan17](https://forum.codewithmosh.com/u/saibuHasan17)\
**Replies:** 1\
**Last updated:** [July 16, 2026, 5:27pm UTC](https://forum.codewithmosh.com/t/is-it-make-sense-to-buy-moshs-docker-course-in-2026/73033 "2026-07-16T17:27:20Z")

</div>

Starting to prepare for internship roles in DevOps

---

## [Error: Sharing the source code with the container lesson](https://forum.codewithmosh.com/t/error-sharing-the-source-code-with-the-container-lesson/71848)

<div class="topic-metadata">

**Author:** [@devteam](https://forum.codewithmosh.com/u/devteam)\
**Replies:** 0\
**Last updated:** [November 19, 2025, 4:26pm UTC](https://forum.codewithmosh.com/t/error-sharing-the-source-code-with-the-container-lesson/71848 "2025-11-19T16:26:59Z")

</div>

Hi, I am getting an error when I try to run the container with the command docker run -d -v $(pwd):/app react\_app:1 Error is: Starting the development server… Failed to compile. EACCES: permission denied, open ‘/a…

---

## [Permission denied, open '/app/package-lock.json'](https://forum.codewithmosh.com/t/permission-denied-open-app-package-lock-json/71196)

<div class="topic-metadata">

**Author:** [@sadiiq\_mukhtaar](https://forum.codewithmosh.com/u/sadiiq_mukhtaar)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 7:04pm UTC](https://forum.codewithmosh.com/t/permission-denied-open-app-package-lock-json/71196 "2025-05-12T19:04:07Z")

</div>

this is my docker file i have error FROM node:22.15.0-alpine3.21 RUN addgroup app && adduser -S -G app app USER app WORKDIR /app COPY package\*.json . RUN npm install COPY . . EXPOSE 5173 CMD \[ "npm" , "run" , …

---

## ["babel-jest": "^26.6.0" error when building](https://forum.codewithmosh.com/t/babel-jest-26-6-0-error-when-building/71160)

<div class="topic-metadata">

**Author:** [@Rockdeveloper](https://forum.codewithmosh.com/u/Rockdeveloper)\
**Replies:** 1\
**Last updated:** [March 20, 2025, 7:54pm UTC](https://forum.codewithmosh.com/t/babel-jest-26-6-0-error-when-building/71160 "2025-03-20T19:54:19Z")

</div>

I am getting the following error when trying to build the frontend application. I tryed the fix suggestions but didn’t work. Anybody else experienced the same issue? I know almost nothing about React, I am a .NET Backe…

---

## [Vidly can't fetch movies and can't save movies](https://forum.codewithmosh.com/t/vidly-cant-fetch-movies-and-cant-save-movies/13455)

<div class="topic-metadata">

**Author:** [@acodeaday](https://forum.codewithmosh.com/u/acodeaday)\
**Replies:** 7\
**Last updated:** [January 7, 2025, 7:33pm UTC](https://forum.codewithmosh.com/t/vidly-cant-fetch-movies-and-cant-save-movies/13455 "2025-01-07T19:33:52Z")

</div>

I did docker compost up, everything seemed to install correctly, I don’t see any errors mentioned, but the app is not working on my system. Any ideas?

---

## [Server Not Running After Docker Installation](https://forum.codewithmosh.com/t/server-not-running-after-docker-installation/28372)

<div class="topic-metadata">

**Author:** [@iyed](https://forum.codewithmosh.com/u/iyed)\
**Replies:** 2\
**Last updated:** [August 24, 2024, 8:14am UTC](https://forum.codewithmosh.com/t/server-not-running-after-docker-installation/28372 "2024-08-24T08:14:31Z")

</div>

Hi Mosh, I really enjoyed your YouTube video, “Docker Tutorial for Beginners.” It was very informative! However, at the 15:07 mark, you mentioned that the server should be running, but it wasn’t, so I’m unable to see th…

---

## ['react-scripts' is not recognized as an internal or external command, operable program or batch file](https://forum.codewithmosh.com/t/react-scripts-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/20132)

<div class="topic-metadata">

**Author:** [@j\_bi](https://forum.codewithmosh.com/u/j_bi)\
**Replies:** 2\
**Last updated:** [March 3, 2024, 4:49am UTC](https://forum.codewithmosh.com/t/react-scripts-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/20132 "2024-03-03T04:49:21Z")

</div>

In Running Multi-container Applications - 13, I tried running frontend test. It didn’t work: npm test vidly-frontend@0.1.0 test react-scripts test --colors ‘react-scripts’ is not recognized as an internal or exte…

---

## [Docker course, chapter Deploying Applications, topic Reducing the Image Size](https://forum.codewithmosh.com/t/docker-course-chapter-deploying-applications-topic-reducing-the-image-size/27512)

<div class="topic-metadata">

**Author:** [@artoszbart](https://forum.codewithmosh.com/u/artoszbart)\
**Replies:** 0\
**Last updated:** [July 6, 2024, 11:43am UTC](https://forum.codewithmosh.com/t/docker-course-chapter-deploying-applications-topic-reducing-the-image-size/27512 "2024-07-06T11:43:36Z")

</div>

In the video we are supposed to add FROM nginx:1.12-alpine to Dockerfile.prod, but then i got message during docker build: ------ \> \[internal\] load metadata for docker.io/library/nginx:1.12-alpine: ------ Dockerfile.…

---

## [Docker \> Building Images \> Exposing Ports: error message sh: react-scripts: command not found](https://forum.codewithmosh.com/t/docker-building-images-exposing-ports-error-message-sh-react-scripts-command-not-found/22593)

<div class="topic-metadata">

**Author:** [@a1ryang](https://forum.codewithmosh.com/u/a1ryang)\
**Replies:** 2\
**Last updated:** [May 24, 2024, 1:03pm UTC](https://forum.codewithmosh.com/t/docker-building-images-exposing-ports-error-message-sh-react-scripts-command-not-found/22593 "2024-05-24T13:03:55Z")

</div>

I’m using a MacBook Pro (2016) model running iTerm2. Here’s the issue in iTerm2: react-app@0.1.0 start react-scripts start sh: react-scripts: command not found aarongayah@A1ryanGs-MacBook-Pro section4-react-app % I…

---

## [Getting 400 Client Error](https://forum.codewithmosh.com/t/getting-400-client-error/26566)

<div class="topic-metadata">

**Author:** [@Lavanya1](https://forum.codewithmosh.com/u/Lavanya1)\
**Replies:** 1\
**Last updated:** [May 11, 2024, 12:43pm UTC](https://forum.codewithmosh.com/t/getting-400-client-error/26566 "2024-05-11T12:43:32Z")

</div>

raise HTTPError(http\_error\_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http+docker://localhost/v1.44/containers/create?name=mn.containernet1 docker.errors.APIError: 400 Cli…

---

## [Sharing the source code with the container lesson](https://forum.codewithmosh.com/t/sharing-the-source-code-with-the-container-lesson/26396)

<div class="topic-metadata">

**Author:** [@MohammedOmar](https://forum.codewithmosh.com/u/MohammedOmar)\
**Replies:** 1\
**Last updated:** [May 5, 2024, 11:10am UTC](https://forum.codewithmosh.com/t/sharing-the-source-code-with-the-container-lesson/26396 "2024-05-05T11:10:10Z")

</div>

When I tried to run docker run -d -p 5005:3000 -v ${pwd}:/app --name react-app react-application:1 this command to share the source code of the host with the container, I get an error \> react-app@0.1.0 start react-scri…

---

## [When adding the line: "volume: ./backend:/app" in the docker-compose.yml file the backend crashes when building up](https://forum.codewithmosh.com/t/when-adding-the-line-volume-backend-app-in-the-docker-compose-yml-file-the-backend-crashes-when-building-up/26146)

<div class="topic-metadata">

**Author:** [@rmrp](https://forum.codewithmosh.com/u/rmrp)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 4:13am UTC](https://forum.codewithmosh.com/t/when-adding-the-line-volume-backend-app-in-the-docker-compose-yml-file-the-backend-crashes-when-building-up/26146 "2024-04-17T04:13:57Z")

</div>

Please, excuse my English. It is my second language… I may have some errors. In the section Running Multi-Container Applications, class No. 11, minute 00:57, explains that we need to add a volume mapping the directory o…

---

## [Docker Course, start command not working](https://forum.codewithmosh.com/t/docker-course-start-command-not-working/26063)

<div class="topic-metadata">

**Author:** [@FloppyDisco](https://forum.codewithmosh.com/u/FloppyDisco)\
**Replies:** 1\
**Last updated:** [April 13, 2024, 3:29pm UTC](https://forum.codewithmosh.com/t/docker-course-start-command-not-working/26063 "2024-04-13T15:29:26Z")

</div>

I have been trying to run docker start -i container-id for like 20 min and i cannot get docker to run an interactive shell on a container that already exists. running docker run -it ubuntu creates a new container, r…

---

## [Docker error - Another application changed your Desktop configurations. This may cause unexpected behavior and errors](https://forum.codewithmosh.com/t/docker-error-another-application-changed-your-desktop-configurations-this-may-cause-unexpected-behavior-and-errors/25893)

<div class="topic-metadata">

**Author:** [@zargosh](https://forum.codewithmosh.com/u/zargosh)\
**Replies:** 0\
**Last updated:** [March 30, 2024, 5:52pm UTC](https://forum.codewithmosh.com/t/docker-error-another-application-changed-your-desktop-configurations-this-may-cause-unexpected-behavior-and-errors/25893 "2024-03-30T17:52:40Z")

</div>

Hey Mosh, I’m a newbie to docker and am currently watching your video. It’s great, thanks! When I open docker for mac – ver 4.28.0 / engine ver 25.0.3 – I get the following error: “Another application changed your Desk…

---

## [Docker Engine vs Docker Desktop 25.0.2](https://forum.codewithmosh.com/t/docker-engine-vs-docker-desktop-25-0-2/25638)

<div class="topic-metadata">

**Author:** [@JohnaStout](https://forum.codewithmosh.com/u/JohnaStout)\
**Replies:** 1\
**Last updated:** [March 15, 2024, 6:49pm UTC](https://forum.codewithmosh.com/t/docker-engine-vs-docker-desktop-25-0-2/25638 "2024-03-15T18:49:23Z")

</div>

Hello, my question is whether or not I need to have Docker Engine running at the same time as Docker Desktop. I installed Docker recently before seeing Mosh’s “Docker Tutorial for Beginners” video on YT. I noticed he s…

---

## [Undiscussed commands in Ultimate Docker course section summary](https://forum.codewithmosh.com/t/undiscussed-commands-in-ultimate-docker-course-section-summary/25169)

<div class="topic-metadata">

**Author:** [@gyenabubakar](https://forum.codewithmosh.com/u/gyenabubakar)\
**Replies:** 0\
**Last updated:** [February 18, 2024, 10:57am UTC](https://forum.codewithmosh.com/t/undiscussed-commands-in-ultimate-docker-course-section-summary/25169 "2024-02-18T10:57:23Z")

</div>

I just finished the section 4 of the Ultimate Docker course and downloaded the summary PDF file. I was surprised to see docker volume and docker cp commands as these were not discussed in the section. Does anyone know w…

---

## [Deploying docker application in different host](https://forum.codewithmosh.com/t/deploying-docker-application-in-different-host/24840)

<div class="topic-metadata">

**Author:** [@shankarkl](https://forum.codewithmosh.com/u/shankarkl)\
**Replies:** 1\
**Last updated:** [February 17, 2024, 9:47am UTC](https://forum.codewithmosh.com/t/deploying-docker-application-in-different-host/24840 "2024-02-17T09:47:00Z")

</div>

We have a DOT NET project setup with a docker container, now we need to deploy the application from Dev to Production. The project contains multiple applications. Can anyone help me out with this?

---

## [Unable to access Docker course](https://forum.codewithmosh.com/t/unable-to-access-docker-course/25090)

<div class="topic-metadata">

**Author:** [@jeromeOlivier](https://forum.codewithmosh.com/u/jeromeOlivier)\
**Replies:** 0\
**Last updated:** [February 13, 2024, 4:54pm UTC](https://forum.codewithmosh.com/t/unable-to-access-docker-course/25090 "2024-02-13T16:54:24Z")

</div>

i have access to all my other courses, but with docker, i get the following error: AssertDecoderError: invalid value for key \["school"\] \> invalid value for key \["settings"\] \> invalid value for key \["strings"\] \> missing …

---

## [Docker \> Building Images \> Lectures 11 & 12 \> User Permissions](https://forum.codewithmosh.com/t/docker-building-images-lectures-11-12-user-permissions/6908)

<div class="topic-metadata">

**Author:** [@Eazy](https://forum.codewithmosh.com/u/Eazy)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 2:06pm UTC](https://forum.codewithmosh.com/t/docker-building-images-lectures-11-12-user-permissions/6908 "2024-01-10T14:06:16Z")

</div>

This issue of moving the user creation to the top of the Dockerfile (first 2 minutes of lecture 12) has confused me. I get that root user did the previous steps and has write permission where app user does not - so I ca…

---

## [Permission issues in my Dockerfile](https://forum.codewithmosh.com/t/permission-issues-in-my-dockerfile/17216)

<div class="topic-metadata">

**Author:** [@wakandom](https://forum.codewithmosh.com/u/wakandom)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 1:59pm UTC](https://forum.codewithmosh.com/t/permission-issues-in-my-dockerfile/17216 "2024-01-10T13:59:49Z")

</div>

If I made root the “user” in the react-app the image will build. But when I made “App” the user the build will fail. See my Dockerfile below: FROM node:14.21.2-alpine3.17 RUN addgroup app && adduser -S -G app app U…

---

## [Docker - Hyper-V instead of WSL 2?](https://forum.codewithmosh.com/t/docker-hyper-v-instead-of-wsl-2/23327)

<div class="topic-metadata">

**Author:** [@PapaBear](https://forum.codewithmosh.com/u/PapaBear)\
**Replies:** 7\
**Last updated:** [January 7, 2024, 8:57pm UTC](https://forum.codewithmosh.com/t/docker-hyper-v-instead-of-wsl-2/23327 "2024-01-07T20:57:34Z")

</div>

In learning how to use Docker on install I am being asked to install Docker and to make sure Hyper-V is active. The problem is that the Docker installer says to use WSL 2 instead of Hyper-V. Are we going to use Hyper-V…

---

## [403 Error when trying to create virtual machine](https://forum.codewithmosh.com/t/403-error-when-trying-to-create-virtual-machine/24207)

<div class="topic-metadata">

**Author:** [@LucasO](https://forum.codewithmosh.com/u/LucasO)\
**Replies:** 1\
**Last updated:** [December 21, 2023, 12:50pm UTC](https://forum.codewithmosh.com/t/403-error-when-trying-to-create-virtual-machine/24207 "2023-12-21T12:50:24Z")

</div>

Hello. I’m currently in the Deployment section of The Ultimate Docker Course and running into an error when I run - docker-machine create \\ --driver digitalocean \\ --digitalocean-access-token "MY\_TOKEN\_KEY" \\ --en…

---

## [./docker-entrypoint.sh: Permission denied vidly-backend-1 exited with code 126](https://forum.codewithmosh.com/t/docker-entrypoint-sh-permission-denied-vidly-backend-1-exited-with-code-126/22689)

<div class="topic-metadata">

**Author:** [@irfan.farooq](https://forum.codewithmosh.com/u/irfan.farooq)\
**Replies:** 4\
**Last updated:** [December 3, 2023, 5:49pm UTC](https://forum.codewithmosh.com/t/docker-entrypoint-sh-permission-denied-vidly-backend-1-exited-with-code-126/22689 "2023-12-03T17:49:14Z")

</div>

I am getting error while executing docker-compose up command. Vidly-backend-1 | /usr/local/bin/docker-entrypoint.sh: exec: line 8: ./docker-entrypoint.sh: Permission denied vidly-backend-1 exited with code 126 I added …

---

## [Hot loading with Docker containers](https://forum.codewithmosh.com/t/hot-loading-with-docker-containers/23693)

<div class="topic-metadata">

**Author:** [@billybob71a](https://forum.codewithmosh.com/u/billybob71a)\
**Replies:** 0\
**Last updated:** [November 17, 2023, 7:41am UTC](https://forum.codewithmosh.com/t/hot-loading-with-docker-containers/23693 "2023-11-17T07:41:49Z")

</div>

Hello, I am taking the Docker course, but hot loading never seems to work for me. I am using Windows 10 with Docker Desktop. I have mapped the appropriate volume directory docker run -d -p 5001:3000 -v %cd%:/app react…

---

## [Help! I'm unable to map a local working dir to container](https://forum.codewithmosh.com/t/help-im-unable-to-map-a-local-working-dir-to-container/15775)

<div class="topic-metadata">

**Author:** [@sachin4589](https://forum.codewithmosh.com/u/sachin4589)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 10:29pm UTC](https://forum.codewithmosh.com/t/help-im-unable-to-map-a-local-working-dir-to-container/15775 "2023-11-09T22:29:57Z")

</div>

Hi Guys, I’m using the built-in Linux on Windows Machine, trying to directly share my source code with my container using this cmd : docker run -d -p 5001:3000 -v $(pwd):/app react-app Note: pwd = source code path, …

---

## [Sharing Source Code. Git Bash. Multiple Issues & Solutions](https://forum.codewithmosh.com/t/sharing-source-code-git-bash-multiple-issues-solutions/20145)

<div class="topic-metadata">

**Author:** [@chrisk](https://forum.codewithmosh.com/u/chrisk)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 7:02pm UTC](https://forum.codewithmosh.com/t/sharing-source-code-git-bash-multiple-issues-solutions/20145 "2023-11-09T19:02:10Z")

</div>

docker run -d -p 5001:3000 -v $(pwd):/app react-app Pulled my hair out over this one… Below I walk through the issues I encountered using Git Bash with solutions… hope it’ll save someone some time. 1st issue: my pwd …

---

## [Problems Docker course on Windows 11](https://forum.codewithmosh.com/t/problems-docker-course-on-windows-11/17740)

<div class="topic-metadata">

**Author:** [@Ulf](https://forum.codewithmosh.com/u/Ulf)\
**Replies:** 3\
**Last updated:** [October 24, 2023, 7:30am UTC](https://forum.codewithmosh.com/t/problems-docker-course-on-windows-11/17740 "2023-10-24T07:30:24Z")

</div>

I have just started on the course, and I am really frustrated. I am using windowss 11, and a lot I have serious problems making things work, since all commands are refered to linux and linux file system. I have some know…

---

## [Docker-compose Migrate with new docker versions?](https://forum.codewithmosh.com/t/docker-compose-migrate-with-new-docker-versions/22747)

<div class="topic-metadata">

**Author:** [@Giorgio](https://forum.codewithmosh.com/u/Giorgio)\
**Replies:** 0\
**Last updated:** [September 27, 2023, 3:20pm UTC](https://forum.codewithmosh.com/t/docker-compose-migrate-with-new-docker-versions/22747 "2023-09-27T15:20:54Z")

</div>

Dear all, what is the best practice for defining mongodb container and launch migration on container start with newest docker versions? Tnx

---

## [Error response from daemon: pull access denied for vidly\_web, repository does not exist or may require 'docker login': denied: requested access to the resource is denied](https://forum.codewithmosh.com/t/error-response-from-daemon-pull-access-denied-for-vidly-web-repository-does-not-exist-or-may-require-docker-login-denied-requested-access-to-the-resource-is-denied/20133)

<div class="topic-metadata">

**Author:** [@j\_bi](https://forum.codewithmosh.com/u/j_bi)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 7:21am UTC](https://forum.codewithmosh.com/t/error-response-from-daemon-pull-access-denied-for-vidly-web-repository-does-not-exist-or-may-require-docker-login-denied-requested-access-to-the-resource-is-denied/20133 "2023-09-13T07:21:12Z")

</div>

in “13- Running Tests”, I can’t add the web-tests to docker-compose.yml. When I run “docker-compose up”, it says this: \[+\] Running 1/1 ✘ web-tests Error 1.5s Error …

[Next page](https://forum.codewithmosh.com/c/docker/23.md?page=1)
