Run a Container and Make It Speak
Tasks
Your mission, should you choose to accept it, is:
- Run a Docker container that can generate ASCII art of a talking whale.
- Make the whale say "Ahoy, Docker"
Requirements
To successfully complete this challenge, you must:
- Use the
docker run
command to start the container.
- Use the image
docker/whalesay
.
- Use the
cowsay
command inside the container to make the whale speak "Ahoy, Docker".
- Execute the command in the
~/project
directory.
Hints
To run a command inside a Docker container as you start it, you can append the command after the image name in your docker run
command. The general structure is:
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
In this case, you'll want to run the cowsay
command with your desired message as an argument.
Example
When you successfully complete the challenge, you should see output similar to this:
______________
< Ahoy, Docker >
--------------
\
\
\
### .
### ### ### ==
### ### ### ### ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/