Docker images are made of read-only layers, so you can't edit them directly. To make changes, update the Dockerfile or source files and build a new image with the Docker build command. As existing containers won't update automatically, you must stop them and make new ones from the image created.