Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker [2015/05/05 05:25] – created snacsnoc | docker [2022/12/19 05:12] (current) – snacsnoc | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Create a SnackLinux Docker container ==== | ==== Create a SnackLinux Docker container ==== | ||
+ | Download the Docker image here: http:// | ||
+ | See below for an example. | ||
- | cat snacklinux-05.05.15-docker.tar | sudo docker import - snacklinux-05.05.15-docker | + | cat snacklinux-22.06.15-docker.tar | sudo docker import - snacklinux-22.06.15-docker |
- | sudo docker run -i -t snacklinux-05.05.15-docker /bin/bash | + | sudo docker run -i -t snacklinux-22.06.15-docker /bin/bash |
+ | |||
+ | |||
+ | ===== Debian setup ===== | ||
+ | |||
+ | 1. Open a terminal window on your Debian 11 machine. Make sure you are logged in as an administrative user. | ||
+ | |||
+ | 2. Update the package list by entering the following command in your terminal: | ||
+ | |||
+ | sudo apt-get update | ||
+ | |||
+ | 3. Install Docker' | ||
+ | |||
+ | sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common | ||
+ | |||
+ | 4. Add the GPG key for Docker' | ||
+ | |||
+ | curl -fsSL https:// | ||
+ | |||
+ | 5. Add the Docker repository to Debian: | ||
+ | |||
+ | sudo add-apt-repository "deb [arch=amd64] https:// | ||
+ | |||
+ | 6. Update the package list once again: | ||
+ | |||
+ | sudo apt-get update | ||
+ | |||
+ | 7. Install Docker: | ||
+ | |||
+ | sudo apt-get install docker-ce docker-ce-cli containerd.io | ||
+ | |||
+ | 8. Check the status of the Docker service: | ||
+ | |||
+ | sudo systemctl status docker | ||
+ | |||
+ | 9. Start Docker: | ||
+ | |||
+ | sudo systemctl start docker | ||
+ | |||
+ | 10. To make sure Docker will start when the system restarts, enter this command: | ||
+ | |||
+ | sudo systemctl enable docker | ||
+ | |||
+ | 11. Finally, check the version of Docker by running the following command: | ||
+ | |||
+ | docker -v |