Menu
Coddy logo textTech

Recap - Container Runner

Part of the Introduction to Docker section of Coddy's Terminal journey — lesson 11 of 40.

challenge icon

Challenge

Easy

Run 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
red

Also use --rm so the container cleans itself up.

Try it yourself

Terminal

All lessons in Introduction to Docker