1.Run a one-off command
BeginnerUse alpine:3.24 to print the Alpine version from /etc/alpine-release, showing only the first two parts, and leave no container behind.
Show hint
--rm removes the container, and cut -d. -f1,2 keeps two parts.
Show solution
docker run --rm alpine:3.24 cat /etc/alpine-release | cut -d. -f1,2
docker ps -aq | wc -l3.24
0