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

Container name depends on docker-compose version. #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shaohef
Copy link

@shaohef shaohef commented Jun 28, 2023

Docker compose setup dnsmasq container will join several words to combine container name with "_" or "-".

"_" or "-" depends on the docker version.

Docker compose setup dnsmasq container will join several words to combine container name with "_" or "-". 

"_" or "-" depends on the docker version.
@shaohef
Copy link
Author

shaohef commented Jun 28, 2023

There are still server hardcode for docker container name in
https://github.com/intel/Edge-Software-Provisioner/blob/master/scripts/espctl.sh

@shaohef
Copy link
Author

shaohef commented Jun 28, 2023

Can we use this command to find the dnsmasq container?

docker ps -f ancestor=builder-dnsmasq --format '{{.ID}}' | head -n 1

@dvintel
Copy link
Contributor

dvintel commented Jun 28, 2023

Can we use this command to find the dnsmasq container?

docker ps -f ancestor=builder-dnsmasq --format '{{.ID}}' | head -n 1

this looks really interesting! I like the idea

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

Successfully merging this pull request may close these issues.

2 participants