

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Help
incomplete
2: Exec
incomplete
3: Exec Netstat
incomplete
4: Live Shell
incomplete
This lesson's interactive features are locked, please to keep using them
Being able to run one-off commands is nice, but it's often more convenient to start a shell session running within the container itself. Thats where the -i and -t flags come in:
-i makes the exec command interactive-t gives us a tty (keyboard) interface/bin/sh gives us a shell session inside the containerFor example:
docker exec -it CONTAINER_ID /bin/sh
echo "I hacked you!" > index.html
Run and submit the CLI tests.