Docker with Ubuntu on R-Car V4H SH

Docker is available on Ubuntu for container-based development and deployment.

This guide explains how to install and verify Docker on the R-Car V4H SH running Ubuntu.

Prerequisites

  • R-Car V4H SH running Ubuntu

  • Internet connection

Install Docker

Follow the steps below to install Docker on the R-Car V4H SH:

sudo apt update

# Make sure you can access the internet
ping -c 4 bing.com

# Install Docker
curl -fsSL https://get.docker.com | sudo sh

# Add user to docker group
sudo usermod -aG docker $USER

Note

After adding your user to the docker group, log out and log back in for the group change to take effect.

Verify Docker Installation

Check that Docker is installed correctly:

docker --version
docker run hello-world

If the installation is successful, the hello-world container runs and prints a confirmation message.

Notes

  • Ensure the board has a stable internet connection before starting the installation.

  • The get.docker.com installation script installs Docker automatically with recommended settings.

  • If docker run hello-world fails after installation, log out and log back in, then try again.

Troubleshooting

  • If apt update fails, verify network connectivity.

  • If ping -c 4 bing.com fails, check DNS and internet access.

  • If you get a permission error when running Docker commands, confirm that your user was added to the docker group and that you have logged in again.