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.

  • Strange way to launch a background apache/mysql docker container
  • Where should I install SQL Management Server instances on my development machine?
  • how to run gunicorn on docker
  • Can I config the hosts file for spring boot docker container?
  • How to get /etc/profile to run automatically in Alpine / Docker
  • Syn flood and net.ipv4.tcp_syncookies
  • 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

  • Docker installation for running node and react environment
  • Token request to keycloak behind docker, curl works, reactjs does not
  • Parse a variable with the result of a command in DockerFile
  • Run copied file in container
  • debugging nodejs docker image inside vagrant
  • Docker-Composer exited with code 0
  • 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.