You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better documentation for S3 driver IAM permissions #1391
As mentioned in #492, the s3 driver requires the following minimal permission scope to operate correctly when configured to use the bucket mybucket at the root:
This should be added to the s3 driver documentation, as well as further information regarding a more limited scope when using a bucket "root directory" prefix.
Just a note for the docs, when running the distribution/registry container on RHEL 7.2 you have to explicitly pass any proxy environment variables like this:
It won't pick them up from the host, so even if you can aws s3 cp from the host via the proxy, it won't push images up to s3. It will just hang and give you no help.
Activity
[-]Better documentation for s3 driver IAM permissions[/-][+]Better documentation for S3 driver IAM permissions[/+]danielwhatmuff commentedon Mar 3, 2016
Just a note for the docs, when running the distribution/registry container on RHEL 7.2 you have to explicitly pass any proxy environment variables like this:
docker run -d -p 5000:5000 -e 'HTTPS_PROXY=http://blah:port' -e 'HTTP_PROXY=http://blah:port' -e 'http_proxy=http://blah:port' -e https_proxy='http://blah:port' -v /tmp/config.yml:/etc/docker/registry/config.yml docker.io/distribution/registry
It won't pick them up from the host, so even if you can aws s3 cp from the host via the proxy, it won't push images up to s3. It will just hang and give you no help.
drewrobb commentedon Mar 31, 2016
Hi, as of 2.4.0 some additional permissions are needed as the client now uses multipart uploads. This is what worked for me:
RichardScothern commentedon Mar 31, 2016
We will need to add
s3:AbortMultipartUploadto this, to be able to cancel uploadshttp://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html