container-storagePentaho Containers

circle-info

triangle-exclamation

circle-info

Docker

Docker is a platform that enables developers to package applications and their dependencies into lightweight, portable containers. Containers ensure that applications run consistently across different computing environments, from development laptops to production servers. This workshop will guide you through the complete process of installing Docker Engine on Ubuntu 24.04 LTS (Noble Numbat).

  1. Before installing Docker, update your existing package list.

sudo apt update && sudo apt upgrade
  1. Install packages that allow apt to use repositories over HTTPS.

sudo apt install -y ca-certificates curl gnupg lsb-release
  1. Create a directory for keyrings and add Docker's GPG key.

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
  1. Add the Docker repository to your apt sources.

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  1. Now that the Docker repository is added, update the package index.

sudo apt update && sudo apt upgrade
  1. Install Docker Engine, containerd, and Docker Compose.

sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  1. Check that Docker is installed correctly by checking the version.

You should see output similar to (Nov 2025):

  1. Verify that Docker Engine is running.

The service should show as "active (running)".

  1. Quit.

  1. Test your Docker installation by running the hello-world container.

circle-info

This command downloads a test image and runs it in a container. If successful, you'll see a message confirming that Docker is working correctly.


circle-info

Without Sudo

By default, Docker requires sudo privileges. To run Docker commands without sudo.

  1. Add your user to the docker group.

  1. Apply the new group membership (or log out and back in).

  1. Verify you can run Docker without sudo.

  1. Ensure Docker starts automatically when the system boots.


circle-info

Verification & Testing

To confirm everything is working properly, run the following commands:

Check Docker version:

View Docker system information:

List running containers:

List all containers (including stopped ones):

List downloaded images:


circle-info

Common Commands

Here are essential Docker commands you'll use regularly:

  • docker pull <image> - Download an image from Docker Hub

  • docker images - List all local images

  • docker run <image> - Create and start a container from an image

  • docker ps - List running containers

  • docker ps -a - List all containers

  • docker stop <container> - Stop a running container

  • docker rm <container> - Remove a stopped container

  • docker rmi <image> - Remove an image

  • docker logs <container> - View container logs

  • docker exec -it <container> bash - Access a running container's shell

Last updated

Was this helpful?