Skip to content

Registry container name conflict issue #20

@Shardj

Description

@Shardj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions