Skip to content

cor-mobile-robotics/docker_intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Check .md links

Docker-intro

This repository gives an indepth explanaition in how to use Docker. With Docker you can containerize applications and can include everything to build and run this application in an isolated environment. This gives the possibility to easily install dependencies without changing the file system of the host. It makes it also highly portable, since this isolated environment can be started on any machine with the same architecture (example, amd or arm). And you can just restart the container when something goes wrong.

Installation

If docker is already installed and you can do,

docker ps

without getting an permission error, you can skip the following steps and go down to the tutorials.

To install docker (https://docs.docker.com/engine/install/ubuntu/):

sudo apt-get update
sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

And then to give superuser priviliges to docker:

sudo groupadd docker
sudo usermod -aG docker $USER

Now restart your machine and check if the permission warning is gone when you run,

docker ps

Sometimes you have to specify the $USER variable on your own in case this didn't work. So remove the variable and change it to your computer name.

Tutorials

1. Starting with Docker
2. Dockerfile
3. Management in Docker
4. Docker image size reduction
5. Docker GPU passthrough
6. Docker inside Visual Studio Code
7. Docker and ROS
8. Docker Compose
9. Docker with the Jetson platform

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published