Recap - Container Runner
Part of the Introduction to Docker section of Coddy's Terminal journey — lesson 11 of 40.
Challenge
EasyRun a single container that does a small pipeline. From a debian image, use sh -c to print the words red green blue on separate lines and sorted alphabetically.
For example, printf "red\ngreen\nblue\n" | sort produces:
blue
green
redAlso use --rm so the container cleans itself up.
Try it yourself
Terminal
All lessons in Introduction to Docker
3Running Containers
Running A CommandReal ExecutionDifferent DistrosAuto-Remove ContainersRecap - Container Runner