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

Conflict registry containers when rerun workflow using "share image with cache" #3

Open
kgkgzrtk opened this issue Aug 29, 2022 · 0 comments

Comments

@kgkgzrtk
Copy link

kgkgzrtk commented Aug 29, 2022

In my project, after the first successful build using spin-up-docker-compose-actions, if I build the second job using cache, I get container conflicts. The optional parameters are not changed between the first and second jobs.

Should I delete the existing container and then rerun it?

args

     - name: Spin-Up Docker Compose
        uses: yu-ichiro/spin-up-docker-compose-action@v1.2
        with:
          file: docker-compose.yml
          shared: true
          bake: true
          push: true
          up: false

actions log

Run [ "false" = "true" ]&&prefix="echo"; \
  [ "false" = "true" ]&&prefix="echo"; \
  $prefix docker run -d -p 5000:5000 --restart=always --name registry -v /tmp/docker-registry:/var/lib/registry registry:2; \
  $prefix npx wait-on tcp:5000
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env: ...
docker: Error response from daemon: Conflict. The container name "/registry" is already in use by container "46e73797bb98b70eefb1a3c0c13a9fac154d8cb1e3a0d449421693733c61320e". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
Error: Process completed with exit code 125.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant