How to override default docker container command or revert to previous container state?


Staff member
I have a docker image running a wordpress installation. The image by executes the apache server as default command. So when you stop the apache service the container exits.

The problem comes after messing up the apache server config. The container cannot start and I cannot recover the image contents.

My options are to either override the command that the container runs or revert last file system changes to a previous state.

Is any of these things possible? Alternatives?