gitlab can not change gitlab url ,i edit config,yml , gitlab.yml

i running a default gitlab container .. all is ok ,then i want to change gitlab url to my domain … there is some strange issue.

i used Mac osx os.

  • Why docker build is so slow
  • Dockers: external drive as shared volume in OSX, Permissions
  • Docker Error: CSS File in Mapped Volume Fails to Update
  • Docker Registrator: Connection refused
  • Prevent docker from creating image from cache
  • How to run docker-compose on remote host?
  • so . i used

    boot2docker ssh
    #entry my vm then
    sudo nsenter --target $PID --mount --uts --ipc --net --pid
    #entry my container ..(PID is ok )
    vi /home/git/gitlab/config/gitlab.yml
    #then edit
    vi /home/git/gitlab-shell/config.yml
    gitlab_url: ""
    vi /etc/nginx/sites-available/default

    then i ctrl-d to exit

    docker restart container_id

    but gitlab url is not change … localhost as same as old …

    when i use entry my container ..(PID is ok ) after entry ry ..

    is back to old

    /home/git/gitlab-shell/config.yml is also back to old …

    /etc/nginx/…/default is change ok!!!!!!!!!

    why ?….
    please help me …
    the best is to complain why take place this strange thing …
    —thank you

  • Spawn multiple fleet-units of same app on same node (CoreOS + Fleet)
  • Access service by its name instead of its VIP
  • Is Active Directory Domain possible inside Windows Docker Image using Windows Server Core?
  • Nginx resolving system in Docker container
  • Docker swarm on AWS - swarm services cannot access internet
  • Docker-Sync issue : Can't have simultaneous environments anymore since 0.4.2
  • One Solution collect form web for “gitlab can not change gitlab url ,i edit config,yml , gitlab.yml”

    Instead of editing config files in running container try running it with environment variables YOUR_SERVER_FQDN and GITLAB_HOST, like this:

    docker run -d -p 80:80 -e="" -e="" sameersbn/gitlab

    You can check how these variables are used in configuration files templates:

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.