generated from enryH/notes_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,52 @@ | ||
# Docker Hands-on beginners training | ||
|
||
Inspired on Nextflow training: <https://training.nextflow.io/basic_training/containers/> | ||
Inspired by Nextflow training: <https://training.nextflow.io/basic_training/containers/> | ||
|
||
In this hands on, we assume you already have an environment with docker installed, either locally, or remotely in a place such as github codespaces which we have made ready for you in this occation. | ||
|
||
Once the docker daemon is running you can run containers, we will start with the `hello-world` container, which is hosted on Docker Hub. | ||
|
||
In your command line, a docker container can be run with the following syntax: | ||
``` | ||
docker run <container-name> | ||
``` | ||
|
||
Excercise: | ||
|
||
Run the publicly available `hello-world` container. | ||
|
||
Solution: | ||
|
||
``` | ||
docker run hello-world | ||
``` | ||
|
||
|
||
|
||
We notice that docker first tried to check if we had the container locally, as we did not, the online container repositories were checked. | ||
As the container was found, it was donwloaded, and run. | ||
|
||
We can also break down the step and only download an image without running it. This is done with the `pull` command using the following syntax: | ||
``` | ||
docker pull <container-name> | ||
``` | ||
|
||
To check which containers you have pulled, you can use `images` with the following syntax: | ||
``` | ||
docker images | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
Excercise: | ||
|
||
Pull the publicly available `debian:bullseye-slim` container and verify it has been downloaded | ||
|
||
Solution: | ||
|
||
``` | ||
docker pull debian:bullseye-slim | ||
docker images | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.