{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/522","labels_url":"https://api.github.com/repos/docker/distribution/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/522/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/522/events","html_url":"https://github.com/docker/distribution/issues/522","id":75979906,"number":522,"title":"configuring registry caching through environment variables","user":{"login":"jedi4ever","id":70908,"avatar_url":"https://avatars.githubusercontent.com/u/70908?v=3","gravatar_id":"","url":"https://api.github.com/users/jedi4ever","html_url":"https://github.com/jedi4ever","followers_url":"https://api.github.com/users/jedi4ever/followers","following_url":"https://api.github.com/users/jedi4ever/following{/other_user}","gists_url":"https://api.github.com/users/jedi4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/jedi4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedi4ever/subscriptions","organizations_url":"https://api.github.com/users/jedi4ever/orgs","repos_url":"https://api.github.com/users/jedi4ever/repos","events_url":"https://api.github.com/users/jedi4ever/events{/privacy}","received_events_url":"https://api.github.com/users/jedi4ever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-13T13:15:35Z","updated_at":"2015-09-25T12:32:01Z","closed_at":"2015-05-15T10:14:56Z","body":"I'm using S3 as a storage system. \r\nI can configure this through the environment variables fine, I see the blobs stored on S3. \r\nNow I also want to configure redis caching through environment variables.\r\n\r\nHowever, I can't seem to find the correct way of specifying the settings. (or it's not supported)\r\nI set the storage_cache as follows:\r\n\r\n````\r\n - REGISTRY_STORAGE=s3\r\n - REGISTRY_STORAGE_S3_REGION=eu-west-1\r\n - REGISTRY_STORAGE_S3_BUCKET=docker-registry.ourdomain.be\r\n - REGISTRY_STORAGE_S3_ACCESSKEY=AK.....\r\n - REGISTRY_STORAGE_S3_SECRETKEY=XX...\r\n - REGISTRY_REDIS_ADDR=redis:6379\r\n - REGISTRY_STORAGE_CACHE=layerinfo\r\n - REGISTRY_STORAGE_CACHE_LAYERINFO=redis\r\n```\r\n\r\n- No message about redis caching appears in the debug log on the registry container\r\n- The environment variables are passed fine to the container\r\n- The ip address & port are correctly linked and reachable\r\n- in the configuration_test.go I don't see any tests on the storage cache setting\r\n- no redis commands are executed `redis-cli monitor`\r\n- the registry is working, but getting very slow\r\n\r\nthanks for any assistance or confirmation that this doesn't work through env variables"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/143205842","html_url":"https://github.com/docker/distribution/issues/522#issuecomment-143205842","issue_url":"https://api.github.com/repos/docker/distribution/issues/522","id":143205842,"user":{"login":"kevinsimper","id":1126497,"avatar_url":"https://avatars.githubusercontent.com/u/1126497?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsimper","html_url":"https://github.com/kevinsimper","followers_url":"https://api.github.com/users/kevinsimper/followers","following_url":"https://api.github.com/users/kevinsimper/following{/other_user}","gists_url":"https://api.github.com/users/kevinsimper/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsimper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsimper/subscriptions","organizations_url":"https://api.github.com/users/kevinsimper/orgs","repos_url":"https://api.github.com/users/kevinsimper/repos","events_url":"https://api.github.com/users/kevinsimper/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsimper/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T12:32:01Z","updated_at":"2015-09-25T12:32:01Z","body":"I ended in the same problem, thought i could set up cache via environment variables."}}