mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Add documentation on how to remove deployed apps
This commit is contained in:
15
README.md
15
README.md
@@ -50,6 +50,21 @@ the Heroku Node.js sample app. All you have to do is add a remote to name the ap
|
||||
|
||||
You're done!
|
||||
|
||||
## Removing a deployed app
|
||||
|
||||
Currently this is a manual process.
|
||||
|
||||
To remove an app, ssh to the server, then run:
|
||||
|
||||
$ sudo docker ps
|
||||
# Then from the list, take repository name of your app and run:
|
||||
$ sudo docker stop app/node-js-sample
|
||||
# To find the ids of images to delete, run:
|
||||
$ sudo docker images
|
||||
# Then from that list, take the IDs corresponding to your app, and
|
||||
# those corresponding to no tag at all, and for each run:
|
||||
$ sudo docker rmi 123456789
|
||||
|
||||
## Environment setup
|
||||
|
||||
Typically application requires some environment variables to be set up for proper run. Environment variables might contain some private date, like passwords and API keys, so it's not recommend to store them as part of source code.
|
||||
|
||||
Reference in New Issue
Block a user