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
    
    "
    gitlab:
    
       host: git.qingluan.com
          ...
    "
    
    vi /home/git/gitlab-shell/config.yml
    
    #edit
    
    "
    gitlab_url: "http://git.qingluan.com/"
    
    "
    vi /etc/nginx/sites-available/default
    
    #edit
    
    
    "
    server_name git.qingluan.com
    "
    

    then i ctrl-d to exit

    docker restart container_id
    then


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

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

    /home/git/gitlab/config/gitlab.yml
    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="YOUR_SERVER_FQDN=yourdomain.com" -e="GITLAB_HOST=yourdomain.com" sameersbn/gitlab
    

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

    https://github.com/sameersbn/docker-gitlab/search?utf8=%E2%9C%93&q=YOUR_SERVER_FQDN
    https://github.com/sameersbn/docker-gitlab/search?utf8=%E2%9C%93&q=GITLAB_HOST

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