docker-registry v2.2.0 S3 config not overwritten

I’m having an issue trying to start a docker registry service with S3 backend. Its acting very strangely. If I launch like this:

docker run -d -e SETTINGS_FLAVOR=s3 -e AWS_BUCKET=sotic-docker-registry -e STORAGE_PATH=/registry -e AWS_REGION=eu-west-1 -e AWS_KEY=***** -e AWS_SECRET=***** -e STORAGE_REDIRECT=true -e SEARCH_BACKEND=sqlalchemy -p 5000:5000 registry:2.2.0

As suggested by other topics on here, I don’t get an overridden config file.

  • Cannot download Docker images behind a proxy
  • Adding InfluxDB server in Chronograf - getting getsockopt
  • how do I clean up my docker host machine
  • How to map a file in a docker volume
  • Bundling from Github in a Dockerfile
  • Executing containers on multiple architectures [closed]
  • Running docker exec on the container and looking at the /etc/docker/registry/config.yml seems to suggest I’m still using the local storage.

    root@5727b353e734:/# vi /etc/docker/registry/config.yml
    version: 0.1
        service: registry
            blobdescriptor: inmemory
            rootdirectory: /var/lib/registry
        addr: :5000
            X-Content-Type-Options: [nosniff]
        enabled: true
        interval: 10s
        threshold: 3

    Any pointers?

  • Does putting ARG at top of Dockerfile prevent layer re-use?
  • Cannot connect to the Docker daemon (port 2375)
  • What's the diff between Empty and No Value for Docker Volumes From?
  • Mounting a container volume into another container on a different path
  • Docker php:5.6-apache 403 (because search permissions are missing on a component of the path)
  • How to replicate microservices when consuming same kafka topic?
  • One Solution collect form web for “docker-registry v2.2.0 S3 config not overwritten”

    It seems the /etc/docker/registry/config.json file never gets touched in the default image. None of the overrides seem to work.

    The answer is to build your own registry image and ADD a config.json with the required components in it.


    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.