Diving In
Docker Run
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
docker run
tells Docker to run the following image- Options are configured as needed
IMAGE
is configured asuser/image
when pulling from docker hub (like CRAN but for Docker)
Docker Compose
docker-compose.yml
-> docker compose [-f <arg>...] [options] [COMMAND] [ARGS...]
- The
docker-compose
file provides a structured way to describe a docker image - Easy way to combine multiple services (maybe you want R + Python)
- Can be used with the
run
(do something) orup
command (be ready to do something) - Options are similar to
docker run