How to change python script in docker image

I've recently build a docker image with a python script inside. I'm wondering if it is possible to change the code inside the container? Besides I'm only able to start the container, but trying to pull it gets me an "access denied" error everytime. The container was built on a windows pc and then pushed via adb to the portenta x8

Docker containers are designed to be lightweight, portable, and immutable. The generally recommended approach is to make changes to your Python script outside the container, then rebuild the Docker image.

On a computer, there are hacks like mounting a volume from the host (used in development phase usually) so that changes will be reflected immediately inside the running container or sometimes you can SSH into a running container and manually modify the code... but that's not the way to go

Thanks for the heads-up!

I am using the command (vi [file name].py) to modify Python files from the terminal. To make changes, press (i) to enter Insert mode. After making your changes, press (Esc) to exit Insert mode. Then, save your changes by typing (:wq) and pressing (Enter).

Regarding the "access denied" error:
Firstly, ensure that you have the appropriate permissions to access the Docker container. and try to login to you Docker account (docker login -u [username] -p [password]). Also, make sure that the container image name is correct.
Secondly, the "access denied" error might be due to a network issue. Please make sure that your Portenta X8 has a stable internet connection.
Lastly, Is there any firewall on your network?

Thanks for your help! I then switched to another board as there was not that much community regarding the Portenta X8.