Not able to create GitLab_Home environment on Windows

Hi everyone, Im new here. So Im trying to run GitLab on my local and Im using Docker to install
Im able to pulling all of the data containing logs, config, and data. But, when Im try to access the server. its wont run, how can I create the GITLAB_HOME environment variable on Windows? Thanks in advance anyone

Screenshot 2023-09-05 113850

Hey there,

you can also specify a specific folder directly, you don’t need to use the variable.

If you want to use the variable, then you need to have a look at Powershell variable definition.


$Env:<variable-name> = "<new-value>"


$Env:GITLAB_HOME = "/some/path"

Then in Docker command you need to use it as ${GITLAB_HOME}

And just for clarification (because you put the screenshot) - this “Environments” in Docker Desktop is not the same as “environment variables” we are speaking about here.

P.S. You don’t need sudo in Windows.

Hope this helps!

Thank you for responding my question,

I already followed all of your provided steps and it works. But, when I tried to run the local. it says

This site can’t be reached

The webpage at http://localhost:22/ might be temporarily down or it may have moved permanently to a new web address.


is there something that Im missing?

your helps will mean a lot for me

Port 22 is used for SSH (git cloning, etc)

You should be able to open UI over https://localhost (if you configured any certificates) or http://localhost (if no certs)

ah it works well, thank you so much for helping me!

1 Like