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.

  • Docker compose environment variables specified with env_file parameter not working inside the dockerfile
  • Why do kubelet failed to get stats from docker (error 500)?
  • Docker run : Logs not displayed on the console
  • Docker Compose with Rails hanging up on command
  • Running docker container in Jenkins container, How can I set the volume from host?
  • Docker Garbage collector not finding anything to delete
  • 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

  • Docker Swarm discovery is still relevant?
  • WSO2 loss APIs after changes in docker container
  • JVM cant map reserved memory when running in Docker container
  • Resize container resources online
  • Deleting files inside docker container not freeing up space on host system
  • Download Github build artifact (release) using wget/curl
  • 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.