I ran this command docker-compose up -d
inside a directory called hosting
.
How can I uninstall that image it created, so I can reinstall it.
I ran this command docker-compose up -d
inside a directory called hosting
.
How can I uninstall that image it created, so I can reinstall it.
2
Answers
You can remove the image by using the command:
To list all images you can use:
You can simply again go to the
hosting
directory and run this:Or via
-f
argument specify thedocker-compose
file path:When you use this, it stops the created containers and removes them.
Also if you want to update it, just do your work in your project (update the codes, the files and so on), then run this command to build the container: