February 2019
Intermediate to advanced
240 pages
5h 25m
English
Now that you’ve had your first taste of Docker, let’s pause for a moment to catch our breath and review what we’ve learned.
In this chapter:
We installed Docker on our machines.
We ran our first ever Docker command, a helloworld Ruby script, without needing Ruby installed on our machine.
| | $ docker run ruby:2.6 ruby -e "puts :hello" |
We saw how to list our running containers with docker ps and all containers (including stopped ones) with docker ps -a.
We deleted our old containers with docker rm <container id> and saw how to create throwaway containers using the docker run’s --rm option.
We generated a new Rails project using a container by:
Starting an interactive Bash shell running inside a container
| | $ |