Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker container changes not saving, osx

I'm configuring some apps while an image is running then commit the changes

  docker commit -m "rabbit queue creation" 3427e02574ea team1/image1:rabbit-shovel
  docker push team1/image1:rabbit-shovel

But when I stop and re-start the changes aren't there.

like image 804
Will Lopez Avatar asked Mar 27 '26 17:03

Will Lopez


1 Answers

Every time you run `docker run' it starts a new container, i.e. generates a new container id.

Do a docker ps -a to see all containers and make sure your container id is for the correct container instance you want to docker commit as a new image.

HTH

like image 56
Anthony A Avatar answered Mar 29 '26 08:03

Anthony A