这是indexloc提供的服务,不要输入任何密码
Skip to content

Dokku and docker images #1108

@krokhale

Description

@krokhale

I feel like i am missing something really trivial here:

  1. I am trying to get this going: https://github.com/gitlabhq/gitlabhq

  2. Docker has a great image for this which is: https://github.com/sameersbn/docker-gitlab , and just fetching that image and then:

docker run --name='gitlab' -it --rm \
-e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=10022' \
-p 10022:22 -p 10080:80 \
-v /var/run/docker.sock:/run/docker.sock \
-v $(which docker):/bin/docker \
sameersbn/gitlab:7.9.2

gets it all running.

  1. I am able to run that image independently just using docker itself and access it on my IP address:port just as the image is supposed to work.

  2. But how do i get that image to run in a dokku app? I read the docs, there's something about run to be passed as docker options, but am not quite sure what exactly should i pass to docker options:

http://progrium.viewdocs.io/dokku/docker-options

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions