Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you cleanly undeploy an app? #36

Closed
fcarriedo opened this issue Jun 21, 2013 · 9 comments
Closed

How do you cleanly undeploy an app? #36

fcarriedo opened this issue Jun 21, 2013 · 9 comments

Comments

@fcarriedo
Copy link

What would be best way to cleanly and completely remove a deployed app (image)?

Would it be?:

$ docker rm <container>
$ docker rmi <image>
$ rm -rf ~/dokku/<app>

Thanks!

@Kyso
Copy link

Kyso commented Jun 21, 2013

That's what I've been doing. Make sure you remove all the images with no
tags as well, as they are previous deploys that docker doesn't
automatically remove.
On Jun 21, 2013 2:29 PM, "Francisco Carriedo" notifications@github.com
wrote:

What would be best way to cleanly and completely remove a deployed app
(image)?

Would it be?:

$ docker rm
$ docker rmi
$ rm -rf ~/dokku/

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/36
.

@fcarriedo
Copy link
Author

@Kyso Nice to know. I didn't want to remove them since wasn't sure there were being used for something else.

It also seems to me that the described process would do it, but is it the correct/official way to do it?

@progrium
Copy link
Contributor

That's basically correct. It'll be official when there is a command to do it, but right now I think tests are higher priority. So that's good for now.

@Kyso
Copy link

Kyso commented Jun 21, 2013

docker rmi id is sufficient.
On Jun 21, 2013 2:35 PM, "Francisco Carriedo" notifications@github.com
wrote:

@Kyso https://github.com/Kyso Nice to know. I didn't want to remove
them since wasn't sure there were being used for something else.

It also seems to me that the described process would do it, but is it the
correct/official way to do it?


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-19833041
.

@fcarriedo
Copy link
Author

Perfect. Thanks!

@lastmjs
Copy link

lastmjs commented Sep 16, 2015

I believe that

dokku cleanup

Is now the command. See this issue #793

@michaelshobbs
Copy link
Member

This is documented. Why are we commenting on 2+ year old closed issues?

@lastmjs
Copy link

lastmjs commented Sep 17, 2015

I didn't see it listed in the output of the dokku help command; I had a hard time finding out that this command exists. Where is it documented?

@michaelshobbs
Copy link
Member

dokku apps:destroy <app> is the preferred method. You can either run man dokku or dokku --help to see the following

    apps:destroy <app>                                                 Permanently destroy an app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants