mattrayner / docker-lamp

A simple LAMP image using Ubuntu, Apache, PHP and MySql in a single image
Apache License 2.0
591 stars 263 forks source link

commit save and restore #135

Open cedric2a opened 1 year ago

cedric2a commented 1 year ago

Hi, great docker and easy to use . However, i have a trouble with backup and restore. all work fine and the /app contain my .php files. But when i commit and save the container after a restore all have reset and my .php files disappears from /app. It's seem that it's a reset image from original !! . So have you a issue for thet ? thanks

pzhlkj6612 commented 1 year ago

Hello!

"/app" is a volume:

https://github.com/mattrayner/docker-lamp/blob/24c620372a4e89afc109126485b7ced5245a77eb/2004/Dockerfile#L85-L86

Please have a look at docker - Commit content of mounted volumes as well - Stack Overflow