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

Registry container name conflict issue #20

Open
Shardj opened this issue Mar 15, 2023 · 0 comments
Open

Registry container name conflict issue #20

Shardj opened this issue Mar 15, 2023 · 0 comments

Comments

@Shardj
Copy link

Shardj commented Mar 15, 2023

Setting up secure private registry...
ERROR

Warning: Permanently added 'x.x.x.x' (ECDSA) to the list of known hosts.
docker: Error response from daemon: Conflict. The container name "/docker-push-ssh-registry" is already in use by container "3dad9f29c73753c634ee3c3e9afa6ce0e1d3782ab7911c24792102c0bf6b5225". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

Seems that from a previous use of this repo the container hasn't been removed, and the program doesn't know how to handle it when this happens. Easy to manually fix but I want this as part of an automated deployment solution so that's not very convenient.

For now I'll just drop echo 'docker rm -f docker-push-ssh-registry' | ssh $sshDetails in my script before using docker-push-ssh

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