docker exec myapp cat /etc/os-release

Category: Docker

docker exec myapp cat /etc/os-release

Read a file inside a running container

Reads a specific file inside a container by running cat inside it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.