How to Set Up Odoo via Docker: Complete Installation Guide
Learn how to set up Odoo via Docker with this step-by-step guide. Simplify installation, streamline deployment, and run Odoo efficiently for your business.
Editor’s note (August 2026): this article covers setting up Odoo 13 via Docker on Ubuntu 18.04 as it stood at the time; the current release is Odoo 19 — see Odoo 19 features for what has changed since.
Docker is an application-level deployment tool that permits the developers and users to form, deploy, run and maintain their applications by using containers. These containers enable the developers to integrate various parts of their software developing packages/tools/environments/libraries into one instance. By doing this, developers can run their applications within the other environment without worrying of their dependency variations.
Docker behaves kind of a virtual machine. By using Docker functionalities with Odoo 13, the user doesn’t get to stress about the dependencies, packages then forth. Just consider the Odoo image. Odoo has all the required packages and libraries within this image. Thus, Docker makes things easy for both developers and end-users. Let’s explore the key steps to put in Odoo 13 via Docker.
In this blog, I have explained how you install Odoo Using Docker. It is as simple as making a cup of tea.
The docker engine is only suitable for the 64bit operating system. Install Docker in Ubuntu 18.0.4
Make sure that the machine’s CPU supports virtualization technology and virtualization support is enabled in BIOS.
Steps to install Odoo with Docker.
- First of all, Update Ubuntu
sudo apt update - Install Docker Install every required package in the system to run the docker sudo apt install apt-transport-https ca-certificates curl software-properties-common
- Get a key for docker maintenance & Security
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D - After adding the key, add docker repository to apt source list sudo nano /etc/apt/sources.list.d/docker.list
- Update all system packages (apt Index) sudo apt update
- Install Docker sudo apt install docker-ce
- Install Linux sudo apt-get install linux-image-extra-$(uname -r)
- Install Official Docker wget for latest Docker Engine wget -qO- https://get.docker.com/ | sh
- Add user in docker groups
usermod -aG docker
- Start Docker sudo systemctl start docker
- Run Docker sudo docker run hello-world
- Stop Docker
sudo docker stop
We have successfully installed Docker in the system, now we install odoo using docker. - Run this command to pull postgres and create user sudo docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres —name db postgres:10
- Run this command to pull odoo, now you can see this service is running on your port 8069 sudo docker run -p 0.0.0.0:8069:8069 —name odoo —link db:db -t odoo
- Now the Odoo server is running on 0.0.0.0:8069
- Start or Stop Odoo Service sudo docker start/stop odoo
Commands that are useful:
- For starting docker with the container use this command docker start container_name
- For restarting docker with the container use this command docker restart container_name
- For stopping docker with the container use this command docker stop container_name
- To start an Odoo instance. The directory should be the same where the docker-compose.yml file exists docker-compose up -d
About TechUltra Solutions.
TechUltra Solutions is an Odoo Gold Partner (since 2021, founded 2016) offering services such as Hiring Odoo Developers, Odoo Implementation, Odoo Development, Odoo Customization, Odoo Integration, Odoo Training, Odoo Consulting, Odoo Migration, and Odoo Support.
Don’t Forget to get Free Odoo consultation.
TechUltra Solutions has client in various locations such as USA, UK, Peru, India, Dubai, South Africa, Indonesia, Egypt, Spain, UAE, Canada, France, Italy and World-Wide.
Frequently asked questions
-
What are the prerequisites for running Odoo in Docker?
A 64-bit operating system (the guide uses Ubuntu 18.04), a CPU that supports virtualization with virtualization enabled in BIOS, and Docker Engine installed.
-
How do you start the Odoo and PostgreSQL containers?
Run a postgres:10 container named db with the odoo user and password, then run the odoo image with -p 0.0.0.0:8069:8069 and --link db:db; the Odoo server then listens on port 8069.
-
How do I start or stop Odoo once it is running in Docker?
Use docker start odoo or docker stop odoo (or docker restart container_name); with a docker-compose.yml, run docker-compose up -d from the same directory.
Related services & solutions
Put this into practice with TechUltra's senior Odoo consultants.
Odoo Implementation Services — Custom-Scope, Discovery-Led
Custom-scope Odoo implementation: paid discovery week, fixed-price delivery, 92% on-time (2024). Gold Partner, 400+ implementations. Book a scoping call.
Odoo Consulting Services
Odoo Gold Partner consulting — Odoo since 2016, 400+ implementations, certified consultants in India, the UK, Peru, South Africa and Italy. Free first call.
Odoo implementation process
Our 7-phase methodology with durations, owners, and exit criteria.
Odoo pricing
License, implementation, and support costs — with 3-year TCO.


