Docker - Kraft2k/icebox-rover GitHub Wiki

Install Docker Engine for arm64

https://docs.docker.com/engine/install/ubuntu/

Install for amd64

curl -fsSL https://get.docker.com -o get-docker.sh

sudo sh get-docker.sh

Create the docker group.

sudo groupadd docker

Add your user to the docker group.

sudo usermod -aG docker $USER

Test

systemctl is-enabled docker

reboot

docker run hello-world

docker image ls

Download image ros2 humble

docker image pull ros:humble

Run container

docker run -it ros:humble

ls /opt/ros

lsb_release -a

docker ps

docker ps -a

cd Docker_project/

Create custom image

docker image build -t my_image .

docker images

Run container

docker run -it my_image

Sharing files with container

~/Desktop/my_code$ docker run -it -v $PWD/source:/my_source_code my_image

~/Desktop/my_code$ docker run -it --user ros -v $PWD/source:/my_source_code my_image

https://www.kernel.org/doc/Documentation/admin-guide/devices.txt