Docker Community Forums

Share and learn in the Docker community.

Docker run errors

Hello everyone : )

I’m trying to run some docker commands, like docker build etc.
I use this repo:

When I build the dockerfile, it’s ok, but then when I launch with docker run i get this error:

/bin/sh: 1: FLASK_APP-opt/app.py: not found, so I change the path for /opt/app.py, but now it tell me permission denied for app.py.

And another question. When I run a ubuntu docker, with this “docker run -it ubuntu bash”, then I create some scripts into this ubuntu docker. I create for exemple in /opt/app.py, and when I leave the docker image and then I run it again (the same docker image), each of my files that I created are gone. I cannot find them.

Do you know why ?

Thanks a lot : )