intel / Edge-Software-Provisioner

BSD 3-Clause "New" or "Revised" License
42 stars 31 forks source link

Container name depends on docker-compose version. #48

Open shaohef opened 1 year ago

shaohef commented 1 year ago

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

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

shaohef commented 1 year ago

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

shaohef commented 1 year ago

Can we use this command to find the dnsmasq container?

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

dvintel commented 1 year ago

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