Running a docker image on dokku
Asked Answered
R

2

8

1) I know and have deployed many apps to dokku.

2) I know the whole git push to a subdomain process of dokku.

3) I also run images from docker by themselves and they run great.

4) I really cant seem to find an answer to this anywhere though. How can i run a DOCKER IMAGE in a DOKKU APP. As in i want that docker image to be running in a dokku app, not by itself using docker run. This is what i imagine:

dokku create:app myApp
<Now make that app run a Docker image, i DONT want to git push and build.>

Thanks!

Rozier answered 12/4, 2015 at 18:7 Comment(0)
Z
11

According to this: Dokku Docs under DockerFile deployment, it looks like you place the DockerFile into the repo and push to dokku.

Zn answered 24/9, 2015 at 20:57 Comment(1)
As one of the dokku maintainers, I can confirm that pushing an app with a Dockerfile is the correct way. You may also deploy by sending in a tar via stdin to the tar:in plugin if you really don't want to push to deploy, but that seems like more work.Assassin
M
6

It's now supported to run docker images directly using dokku git:from-image command

Check this: Dokku from docker image

Minutely answered 19/8, 2021 at 11:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.