Image

Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Docker throws docker: invalid reference format: repository name (library/PRIVATE) must be lowercase error

+2
−0

I've been trying to set up campfire to test - I'm mostly following the guide given on the git repo , and trying to fill in the missing bits.

I'm using this script to try to start the basecamp docker container

export YOUR_SECRET_KEY_BASE=$(cat redis.key);
export VAPID_PRIVATE_KEY=$(cat vapid_private.key);
export VAPID_PUBLIC_KEY=$(cat vapid_public.key);

docker run \
  --restart unless-stopped \
  --volume campfire:/rails/storage \
  --env SECRET_KEY_BASE=$YOUR_SECRET_KEY_BASE \
  --env VAPID_PUBLIC_KEY=$YOUR_PUBLIC_KEY \
  --env VAPID_PRIVATE_KEY=$YOUR_PRIVATE_KEY \
campfire

I've disabled the SSL based service since in production I'll be putting it behind a reverse proxy - my goal for now is getting a minimal viable example up.

I've gotten the 3 keys in individual text files for now. I'll look at a better way later, and that might be out of scope.

When I run this, or just the commands necessary to start the container I get the following error

docker: invalid reference format: repository name (library/PRIVATE) must be lowercase

Run 'docker run --help' for more information

I've set the redis key with openssl genrsa -out redis.key 1024 The current instance is within the lan, and will get rebuilt once I've got it documented so the current key looks something like this. I've cropped it for brevity

-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDtsY....wAjQ4glWEm
jN6vo+2ehiWd2F9qb0X3ixPFE5Q//4HJlaeRxdUCgYEAk7sLnGU1615hJEX6W10j
Cdn0IbsUOP9RYZpKIkMBOQQPunRp1detW28Evs7wyYidALeUiPO9zysjTxDYdwQg
x1wvpwJhuo46pk0Es86fVQirSl1tZ+lGAZ0aVNiOiZVfpZhFWzPqaLeJZds/0EXG
Dr/LnvSHbRvZMEhZHknPWro=
-----END PRIVATE KEY-----

When I set the YOUR_SECRET_KEY_BASE variable to a short all lowercase string like 'potato', it runs.

Oddly the other keys are mixed and they work, but they're considerably shorter. What am I missing here, and do I need to keep variables like keys all smallcase in docker?

History

0 comment threads

1 answer

+2
−0

So, for some reason, the fact that that key I'd generated for SECRET_KEY_BASE had capital letters didn't quite sit well with docker. I ended up generating a new key with pwgen -A 50 - the -A removes capital letters, and it works now.

History

0 comment threads

Sign up to answer this question »