{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/778","labels_url":"https://api.github.com/repos/docker/distribution/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/778/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/778/events","html_url":"https://github.com/docker/distribution/issues/778","id":97912728,"number":778,"title":"Registry Storage uses filesystem although configured for S3","user":{"login":"jtbcgdv","id":12053794,"avatar_url":"https://avatars.githubusercontent.com/u/12053794?v=3","gravatar_id":"","url":"https://api.github.com/users/jtbcgdv","html_url":"https://github.com/jtbcgdv","followers_url":"https://api.github.com/users/jtbcgdv/followers","following_url":"https://api.github.com/users/jtbcgdv/following{/other_user}","gists_url":"https://api.github.com/users/jtbcgdv/gists{/gist_id}","starred_url":"https://api.github.com/users/jtbcgdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtbcgdv/subscriptions","organizations_url":"https://api.github.com/users/jtbcgdv/orgs","repos_url":"https://api.github.com/users/jtbcgdv/repos","events_url":"https://api.github.com/users/jtbcgdv/events{/privacy}","received_events_url":"https://api.github.com/users/jtbcgdv/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":{"login":"dmp42","id":332946,"avatar_url":"https://avatars.githubusercontent.com/u/332946?v=3","gravatar_id":"","url":"https://api.github.com/users/dmp42","html_url":"https://github.com/dmp42","followers_url":"https://api.github.com/users/dmp42/followers","following_url":"https://api.github.com/users/dmp42/following{/other_user}","gists_url":"https://api.github.com/users/dmp42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmp42/subscriptions","organizations_url":"https://api.github.com/users/dmp42/orgs","repos_url":"https://api.github.com/users/dmp42/repos","events_url":"https://api.github.com/users/dmp42/events{/privacy}","received_events_url":"https://api.github.com/users/dmp42/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-29T11:03:09Z","updated_at":"2015-09-18T19:37:27Z","closed_at":"2015-07-29T15:32:36Z","body":"I'm running registry:2 in a kubernetes cluster.\r\n\r\nI pass these environment variables to the docker container\r\nREGISTRY_LOG_LEVEL=debug\r\nREGISTRY_STORAGE_S3_ACCESSKEY=**ommitted**\r\nREGISTRY_STORAGE_S3_SECRETKEY=**ommitted**\r\nREGISTRY_STORAGE_S3_REGION=eu-west-1\r\nREGISTRY_STORAGE_S3_BUCKET=[bucketname]\r\nREGISTRY_STORAGE_S3_ROOTDIRECTORY=/registry\r\n\r\n\r\nThese is the output of docker inspect\r\n\r\n[{\r\n    \"AppArmorProfile\": \"\",\r\n    \"Args\": [\r\n        \"cmd/registry/config.yml\"\r\n    ],\r\n    \"Config\": {\r\n        \"AttachStderr\": false,\r\n        \"AttachStdin\": false,\r\n        \"AttachStdout\": false,\r\n        \"Cmd\": [\r\n            \"cmd/registry/config.yml\"\r\n        ],\r\n        \"CpuShares\": 102,\r\n        \"Cpuset\": \"\",\r\n        \"Domainname\": \"\",\r\n        \"Entrypoint\": [\r\n            \"registry\"\r\n        ],\r\n        \"Env\": [\r\n            \"REGISTRY_LOG_LEVEL=debug\",\r\n            \"REGISTRY_STORAGE_S3_ACCESSKEY=\r\n            \"REGISTRY_STORAGE_S3_SECRETKEY=\r\n            \"REGISTRY_STORAGE_S3_REGION=eu-west-1\",\r\n            \"REGISTRY_STORAGE_S3_BUCKET=\r\n            \"REGISTRY_STORAGE_S3_ROOTDIRECTORY=/registry\",\r\n            \"PATH=/go/bin:/usr/src/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\r\n            \"GOLANG_VERSION=1.4.2\",\r\n            \"GOPATH=/go/src/github.com/docker/distribution/Godeps/_workspace:/go\",\r\n            \"DISTRIBUTION_DIR=/go/src/github.com/docker/distribution\"\r\n        ],\r\n        \"ExposedPorts\": {\r\n            \"5000/tcp\": {}\r\n        },\r\n        \"Hostname\": \"docker-registry-8p5q9\",\r\n        \"Image\": \"registry:2\",\r\n        \"Labels\": {\r\n            \"io.kubernetes.pod.name\": \"default/docker-registry-8p5q9\"\r\n        },\r\n        \"MacAddress\": \"\",\r\n        \"Memory\": 0,\r\n        \"MemorySwap\": -1,\r\n        \"NetworkDisabled\": false,\r\n        \"OnBuild\": null,\r\n        \"OpenStdin\": false,\r\n        \"PortSpecs\": null,\r\n        \"StdinOnce\": false,\r\n        \"Tty\": false,\r\n        \"User\": \"\",\r\n        \"Volumes\": null,\r\n        \"WorkingDir\": \"/go/src/github.com/docker/distribution\"\r\n    },\r\n    \"Created\": \"2015-07-29T10:43:26.041748128Z\",\r\n    \"Driver\": \"aufs\",\r\n    \"ExecDriver\": \"native-0.2\",\r\n    \"ExecIDs\": [\r\n        \"b9399e3d0a0a16f6ecd109595edeff10aadc04e02ab8f009b303aec5bcf48142\",\r\n        \"20df541df66fe237c3c9bcc81f353dcf4ee50e6bfa4b01fd82f3aeee7a99140b\"\r\n    ],\r\n    \"HostConfig\": {\r\n        \"Binds\": [\r\n            \"/var/lib/kubelet/pods/a42b55b6-35de-11e5-ba00-06fb2c2c6b3f/volumes/kubernetes.io~secret/default-token-fu6hf:/var/run/secrets/kubernetes.io/serviceaccount:ro\",\r\n            \"/var/lib/kubelet/pods/a42b55b6-35de-11e5-ba00-06fb2c2c6b3f/containers/registry/11d6facaf63f5371d83a33f183663b97fa1778b591b99d37c282f0035fa8123d:/dev/termination-log\"\r\n        ],\r\n        \"CapAdd\": null,\r\n        \"CapDrop\": null,\r\n        \"CgroupParent\": \"docker\",\r\n        \"ContainerIDFile\": \"\",\r\n        \"CpuShares\": 102,\r\n        \"CpusetCpus\": \"\",\r\n        \"Devices\": null,\r\n        \"Dns\": [\r\n            \"10.0.0.10\",\r\n            \"172.20.0.2\"\r\n        ],\r\n        \"DnsSearch\": [\r\n            \"default.svc.cluster.local\",\r\n            \"svc.cluster.local\",\r\n            \"cluster.local\",\r\n            \"eu-west-1.compute.internal\"\r\n        ],\r\n        \"ExtraHosts\": null,\r\n        \"IpcMode\": \"container:fed6b8ba1ffd61160636a562795b85cd12b6748576b86796cdc17e7a402ad3a6\",\r\n        \"Links\": null,\r\n        \"LogConfig\": {\r\n            \"Config\": null,\r\n            \"Type\": \"json-file\"\r\n        },\r\n        \"LxcConf\": null,\r\n        \"Memory\": 0,\r\n        \"MemorySwap\": -1,\r\n        \"NetworkMode\": \"container:fed6b8ba1ffd61160636a562795b85cd12b6748576b86796cdc17e7a402ad3a6\",\r\n        \"PidMode\": \"\",\r\n        \"PortBindings\": null,\r\n        \"Privileged\": false,\r\n        \"PublishAllPorts\": false,\r\n        \"ReadonlyRootfs\": false,\r\n        \"RestartPolicy\": {\r\n            \"MaximumRetryCount\": 0,\r\n            \"Name\": \"\"\r\n        },\r\n        \"SecurityOpt\": null,\r\n        \"Ulimits\": null,\r\n        \"VolumesFrom\": null\r\n    },\r\n    \"HostnamePath\": \"/var/lib/docker/containers/fed6b8ba1ffd61160636a562795b85cd12b6748576b86796cdc17e7a402ad3a6/hostname\",\r\n    \"HostsPath\": \"/var/lib/docker/containers/fed6b8ba1ffd61160636a562795b85cd12b6748576b86796cdc17e7a402ad3a6/hosts\",\r\n    \"Id\": \"11d6facaf63f5371d83a33f183663b97fa1778b591b99d37c282f0035fa8123d\",\r\n    \"Image\": \"b4ad0b763f116fa6ab967020acceaddcece76a67866bfebf50d624f42f310160\",\r\n    \"LogPath\": \"/var/lib/docker/containers/11d6facaf63f5371d83a33f183663b97fa1778b591b99d37c282f0035fa8123d/11d6facaf63f5371d83a33f183663b97fa1778b591b99d37c282f0035fa8123d-json.log\",\r\n    \"MountLabel\": \"\",\r\n    \"Name\": \"/k8s_registry.ce3930e5_docker-registry-8p5q9_default_a42b55b6-35de-11e5-ba00-06fb2c2c6b3f_85c752b3\",\r\n    \"NetworkSettings\": {\r\n        \"Bridge\": \"\",\r\n        \"Gateway\": \"\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"\",\r\n        \"IPPrefixLen\": 0,\r\n        \"IPv6Gateway\": \"\",\r\n        \"LinkLocalIPv6Address\": \"\",\r\n        \"LinkLocalIPv6PrefixLen\": 0,\r\n        \"MacAddress\": \"\",\r\n        \"PortMapping\": null,\r\n        \"Ports\": null\r\n    },\r\n    \"Path\": \"registry\",\r\n    \"ProcessLabel\": \"\",\r\n    \"ResolvConfPath\": \"/var/lib/docker/containers/fed6b8ba1ffd61160636a562795b85cd12b6748576b86796cdc17e7a402ad3a6/resolv.conf\",\r\n    \"RestartCount\": 0,\r\n    \"State\": {\r\n        \"Dead\": false,\r\n        \"Error\": \"\",\r\n        \"ExitCode\": 0,\r\n        \"FinishedAt\": \"0001-01-01T00:00:00Z\",\r\n        \"OOMKilled\": false,\r\n        \"Paused\": false,\r\n        \"Pid\": 12458,\r\n        \"Restarting\": false,\r\n        \"Running\": true,\r\n        \"StartedAt\": \"2015-07-29T10:43:26.12565458Z\"\r\n    },\r\n    \"Volumes\": {\r\n        \"/dev/termination-log\": \"/var/lib/kubelet/pods/a42b55b6-35de-11e5-ba00-06fb2c2c6b3f/containers/registry/11d6facaf63f5371d83a33f183663b97fa1778b591b99d37c282f0035fa8123d\",\r\n        \"/var/run/secrets/kubernetes.io/serviceaccount\": \"/var/lib/kubelet/pods/a42b55b6-35de-11e5-ba00-06fb2c2c6b3f/volumes/kubernetes.io~secret/default-token-fu6hf\"\r\n    },\r\n    \"VolumesRW\": {\r\n        \"/dev/termination-log\": true,\r\n        \"/var/run/secrets/kubernetes.io/serviceaccount\": false\r\n    }\r\n}\r\n]\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/141548027","html_url":"https://github.com/docker/distribution/issues/778#issuecomment-141548027","issue_url":"https://api.github.com/repos/docker/distribution/issues/778","id":141548027,"user":{"login":"jcderr","id":206918,"avatar_url":"https://avatars.githubusercontent.com/u/206918?v=3","gravatar_id":"","url":"https://api.github.com/users/jcderr","html_url":"https://github.com/jcderr","followers_url":"https://api.github.com/users/jcderr/followers","following_url":"https://api.github.com/users/jcderr/following{/other_user}","gists_url":"https://api.github.com/users/jcderr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcderr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcderr/subscriptions","organizations_url":"https://api.github.com/users/jcderr/orgs","repos_url":"https://api.github.com/users/jcderr/repos","events_url":"https://api.github.com/users/jcderr/events{/privacy}","received_events_url":"https://api.github.com/users/jcderr/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T19:37:27Z","updated_at":"2015-09-18T19:37:27Z","body":"This should be re-opened, either as a ticket to update the docs to remove references to overriding this via ENV, or as a request to implement this behavior as-documented."}}