docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

Could not start container when using timezone with a slash

Open urquilla opened this issue 11 years ago • 3 comments

After configuring the environment variables and starting the containers using docker-compose received this output:

gitlab_1     | sed: -e expression #1, char 31: unknown option to `s'
gitlab_gitlab_1 exited with code 1

Which resulted somewhat cryptic, after fooling around found that using a slash in the timezone variable produced an error with the sed regex.

The workaround was using a backwards slash to escape it:

- GITLAB_TIMEZONE=America\/El_Salvador

urquilla avatar Jun 11 '15 00:06 urquilla

@urquilla you need to specify the constant that maps to your timezone listed here http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html.

For example, if I want to set the timezone to Asia/Kolkata, I need to use GITLAB_TIMEZONE=Kolkata. Please check the constants listed in the above link and use the appropriate one.

sameersbn avatar Jun 11 '15 04:06 sameersbn

I see, thank you very much On Jun 10, 2015 22:21, "Sameer Naik" [email protected] wrote:

@urquilla https://github.com/urquilla you need to specify the constant that maps to your timezone listed here http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html.

For example, if I want to set the timezone to Asia/Kolkata, I need to use GITLAB_TIMEZONE=Kolkata. Please check the constants listed in the above link and use the appropriate one.

— Reply to this email directly or view it on GitHub https://github.com/sameersbn/docker-gitlab/issues/342#issuecomment-110995319 .

urquilla avatar Jun 11 '15 05:06 urquilla

The & character is now automatically escaped. If you have manually escaped the & character, then you need to remove it in versions > 8.1.x.

sameersbn avatar Nov 22 '15 06:11 sameersbn