← Learn
Safe
docker exec api cat /app/version.txt

cross-platform · bash · Beginner

Reads one file from inside a running container. docker exec can run anything, which is why it reads as dangerous, but what it is asked to run here is cat against a version file.

Think you can spot these under time pressure?

Start Training

More Docker