docker-push-ssh icon indicating copy to clipboard operation
docker-push-ssh copied to clipboard

Registry container name conflict issue

Open Shardj opened this issue 2 years ago • 0 comments
trafficstars

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

Shardj avatar Mar 15 '23 10:03 Shardj