- 1
- Declare the base image
- 2
-
Copy
data.csvfrom the host’s working directory to the container’s data directory - 3
-
Print the first few rows of
data.csv
Docker creates standardized environments that are:
Reproducible
Portable
Collaborative
Scalable


DockerfileDockerfiles build Docker images
Dockerfiles are plain text files using FROM, RUN, COPY, and CMD commands
Docker images contain the bundled software (e.g. OS, data, packages)
Docker images can be shared with others via Docker hub
Docker images can, in theory, be a standalone project
By default, changes made to containers are lost on shutdown
Data can be preserved from instance to instance of the same container using mounted volumes
Containers are a process that executes the layers of your Dockerfile