Skip to content

Containers started with -p flag not restarted with -p flag. #174

@mag37

Description

@mag37

I think I'm onto something. Had the issue again with a different stack entirely.

I think the issue stems from docker's project entity and the -p flag in docker compose specifically.
When doing docker-compose up -d in the containers folder by itself, I'm getting the following error, which coincidentally is the same error that I get when trying to update it using dockcheck.

Error response from daemon: Conflict. The container name "/container" is already in use by container "{long_string}". You have to remove (or rename) that container to be able to reuse that name.

Once I redo the command specifying the project like so docker-compose -p project up -d, the container updates as normal.

I think what's happening is that dockcheck doesn't know that the container was launched using the -p parameter. I'm not 100% sure if that's something that you can fix, but I'm fairly sure if there's a way for dockcheck to... check if that's the case before attempting to up -d the container, and pass the parameter and value if it is, that would solve the issue!

Originally posted by @kennywasafk in #117

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions