# \[Docker\] lesson 7 \< section 6 (Running Multi-container Applications) - error and solution

**URL:** <https://forum.codewithmosh.com/t/docker-lesson-7-section-6-running-multi-container-applications-error-and-solution/6470>\
**Category:** Docker\
**Created:** [July 30, 2021, 4:48pm UTC](https://forum.codewithmosh.com/t/docker-lesson-7-section-6-running-multi-container-applications-error-and-solution/6470 "2021-07-30T16:48:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jediampm](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jediampm](https://forum.codewithmosh.com/u/jediampm)\
**Post date:** [July 30, 2021, 4:48pm UTC](https://forum.codewithmosh.com/t/docker-lesson-7-section-6-running-multi-container-applications-error-and-solution/6470/1 "2021-07-30T16:48:02Z")

</div>

Hi,

in lesson 7 (build images) of section 6 you will find error of permitions in frontend and backend like:

> Missing write access to /app

for this i recommend to change the dockerfile of frontend and backend like this:

**frontend:**

```auto
FROM node:14.16.0-alpine3.13

WORKDIR /app
# added chown -R app /app
RUN addgroup app && adduser -S -G app app && chown -R app /app

USER app

COPY package*.json ./
RUN npm install
COPY . .

EXPOSE 3000 

CMD ["npm", "start"]

```

**backend:**

```auto
FROM node:14.16.0-alpine3.13

WORKDIR /app

RUN addgroup app && adduser -S -G app app && chown -R app /app

USER app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3001

CMD ["npm", "start"]

```
