Unable to start container

start of container fails. So working on a mac-air
cmd executed: docker run -d -p 80:3000 --name sg1 react-app
So Q, what am i missing, any help would be appreciated.
Content of dockerfile pasted; FROM node:14.16.0-alpine3.13

RUN addgroup app && adduser -S -G app app

USER app

WORKDIR /app

COPY package*json .

RUN npm install

#RUN apt install python

COPY . .

ENV API_URL=http://api.myapp.com

EXPOSE 3000

CMD [“npm”, “start”]

Hi,

Could you please format the code properly by surrounding it by triple backticks? `
Also what exactly is the error you are getting?

I notice you have commented a line installing python. Maybe is it the problem?

Cheers.

Hi

Code is not throwing any error. The container does not start. Did remove commented line in docker file. So what do you mean by triple backticks?
base) sg@sgs-macbook-air section4-react-app % docker build -t reach-app .

The symbol in the square in my previous answer is a backtick.

The forum use a lighter version of markdown, but in this language code is fenced into triple backticks

image
gives
image

This increases readability.

As of the problem, there must be a log somewhere. Are you trying to run it from Docker Desktop or in command line?

Cheers

Howdy
Attempting to start docker using cmd-line. So where are logs located. below is what i executed and result pasted;

base) sg@sgs-macbook-air react-app % docker run react-app npm start

react-app@0.1.0 start /app
react-scripts start

:information_source: 「wds」: Project is running at http://172.17.0.2/
:information_source: 「wds」: webpack output is served from
:information_source: 「wds」: Content not from webpack is served from /app/public
:information_source: 「wds」: 404s will fallback to /
Starting the development server…

(base) sg@sgs-macbook-air react-app % docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) sg@sgs-macbook-air react-app %

Any update, issue remains unresolved for past 10 days!!

I just replicated code that was provided in course, what am i missing. Appreciate any help.

May be time to consider a reinstall of any programs your using to make the container