How to Install Odoo 18 with Docker on Ubuntu 22.04 (ARM64)
Odoo is a powerful open-source business management software that includes CRM, eCommerce, billing, accounting, manufacturing, project management, and more. In this guide, we'll walk you through installing Docker and Odoo 18 on Ubuntu 22.04 (ARM64) in a few simple steps.
Step 1: Install Docker on Ubuntu 22.04 ARM64
Docker allows you to run applications in lightweight containers, making it easy to deploy Odoo and its dependencies.
1.1 Update System Packages
Before installing Docker, update your system:
sudo apt update && sudo apt upgrade -y1.2 Install Required Dependencies
Install the following packages to allow Docker to run without sudo:
sudo apt install -y ca-certificates curl gnupg1.3 Add Docker’s Official GPG Key
sudo install -m 0755 -d /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo tee /etc/apt/keyrings/docker.asc > /dev/nullsudo chmod a+r /etc/apt/keyrings/docker.asc1.4 Add Docker’s Repository
echo \ "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null1.5 Install Docker
sudo apt updatesudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin1.6 Enable and Start Docker
sudo systemctl enable dockersudo systemctl start docker1.7 Verify Installation
docker --versiondocker run --rm hello-worldStep 2: Install and Run PostgreSQL (Database)
Odoo requires PostgreSQL as its database backend. We will run PostgreSQL as a Docker container.
2.1 Pull PostgreSQL Image (ARM64)
docker pull postgres:152.2 Run PostgreSQL Container
docker run -d \ --name odoo-db \ --restart always \ -e POSTGRES_USER=odoo \ -e POSTGRES_PASSWORD=odoo \ -e POSTGRES_DB=postgres \ -v odoo-db-data:/var/lib/postgresql/data \ -p 5432:5432 \ postgres:15Step 3: Install and Run Odoo 18
Now we are ready to install Odoo 18. We will run Odoo 18 as a Docker container.
3.1 Pull Odoo 18 Image (ARM64)
docker pull odoo:183.2 Run Odoo 18 Container
docker run -d \ --name odoo \ --restart always \ --link odoo-db:db \ -p 8069:8069 \ -v odoo-web-data:/var/lib/odoo \ -e HOST=db \ -e USER=odoo \ -e PASSWORD=odoo \ odoo:18Step 4: Access Odoo
Once the installation is complete, you can access Odoo by opening your web browser and navigating to:
Follow the on-screen setup wizard to configure Odoo for your business needs.
Step 5: Manage Docker Containers
Once Odoo is installed, you can manage multiple containers simultaneously. You can check the status of all containers by running the following command:
docker psNow let's stop and remove the containers we created. You can do this in case you want to install Odoo on a different server or want to update the image.
5.1 Stop and Remove Containers
docker stop odoodocker stop odoo-dbNow let's start the containers again.
5.2 Start Odoo or PostgreSQL
docker start odoodocker start odoo-db5.3 Remove Containers (If Needed)
If you need to remove the Odoo and PostgreSQL containers along with their volumes, run:
docker rm -f odoo odoo-dbdocker volume rm odoo-web-data odoo-db-dataFinal Thoughts
You’ve successfully installed Docker and Odoo 18 on Ubuntu 22.04 (ARM64). By using Docker, you ensure that your Odoo setup is easy to maintain, upgrade, and deploy across different environments.
If you found this guide helpful, feel free to share it with others looking to set up Odoo on ARM64 systems!