docker - How to check if an externally linked container is connected -
using docker-compose, can add externally linked container so:
foo/dockerfile
services: has-external-link: networks: - default - other_default external_links: - other-service networks: other_default: external: true
which should connect image service other-service
defined in other/dockerfile
.
docker compose doesn't seem care if other-service
or not when starting has-external-link
. there way verify containers indeed linked expected?*
*...that doesn't require executing in other-service
, in modern age of docker not have curl
or installed
Comments
Post a Comment