Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx crashes since 2.2.0 when overriding default.conf #247

Closed
utrotzek opened this issue Apr 21, 2022 · 1 comment
Closed

nginx crashes since 2.2.0 when overriding default.conf #247

utrotzek opened this issue Apr 21, 2022 · 1 comment
Labels

Comments

@utrotzek
Copy link

Hi, I use this docker registry UI and I have an issue...

Bug description

Since version 2.2.0 the nginx crashes with the following error when the dafault.conf is mounted into the container:

sed: can't move '/etc/nginx/conf.d/default.confLFCogB' to '/etc/nginx/conf.d/default.conf': Resource busy

Obviously this has something to do with a change of the underlying nginx image that you are using. I could not figure out what exactly changed there.

I would suggest to adjust the examples. /~https://github.com/Joxit/docker-registry-ui/blob/main/examples/read-only-auth/docker-compose.yml#L19

Maybe you could change it like this. I worked around this by simple creating an own Dockerfile.

Dockerfile.ui:

FROM joxit/docker-registry-ui:2
COPY nginx.conf /etc/nginx/conf.d/default.conf

docker-compose.yml:

version: '2.0'
services:
  registry:
    image: registry:2.7
    volumes:
      - ./registry-data:/var/lib/registry
      - ./registry.yml:/etc/docker/registry/config.yml
    networks:
      - registry-ui-net

  ui:
    build:
      context: .
      dockerfile: Dockerfile.ui
    ports:
      - 80:80
    environment:
      - REGISTRY_TITLE=My Private Docker Registry
      - SINGLE_REGISTRY=true
    volumes:
      - ./read-write.htpasswd:/etc/nginx/auth/read-write.htpasswd:ro
      - ./read-only.htpasswd:/etc/nginx/auth/read-only.htpasswd
    depends_on:
      - registry
    networks:
      - registry-ui-net
networks:
  registry-ui-net:

Then simply:

  • docker-compose build --pull
  • docker-compose up -d
@Joxit
Copy link
Owner

Joxit commented May 6, 2022

Hello, thank you for using my project.

Issue confirmed and may be fixed in 2.2.1 😄

@Joxit Joxit added the bug label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants