Hi! I’ve inherited a machine installed by somebody else who’s no longer in the company or the country. The machine is running just fine, but i see no Dockerfiles or docker-compose.yml, and this looks like something that came from a Compose file with a few linked containers.

Is it possible to reconstruct that info from the running containers? I’m still a raw Docker newbie at this point so i don’t know if this is even possible, would be helpful not to have to try and contact the person who set it up.

  • sudneo@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    1 year ago

    You can use docker inspect command to dump any meaningful info about the running containers. You can get details about networking, images etc.

    Also you can check systemd units (or whatever your system uses) in case they are used to launch containers or docker compose files.

    Running ps you should also be ablen to see if docker-compose is used, and in general this uses standard names (docker-compose.yml/.yaml), so you can simply find / -name those.