By: Sreejith

How to Install Odoo Using Docker


In this blog how the docker is used to run Odoo in your system is explained. It is very simple to use Docker for Odoo.

Installing Docker on Ubuntu 16.04 LTS Xenial. The docker engine is only suitable for the 64bit operating system. 

Make sure that the machine's CPU supports virtualization technology and virtualization support is enabled in BIOS. 

1. First, update the Ubuntu

		sudo apt update

2Add a key for our docker

		sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

3. Key is added to the machine, add the repository source to the apt source list.

		sudo nano /etc/apt/sources.list.d/docker.list

the following line this

      		deb ubuntu-xenial main

Save and exit


4. Update the apt index

       		sudo apt update

5. Install Linux kernel

      		 sudo apt-get install linux-image-extra-$(uname -r)

6. Install Docker engine

       		sudo apt-get install docker-engine

7. Install Official Docker Script to install the latest Docker Engine

     		wget -qO- | sh


if no wget then install wget by running this code

              sudo apt-get install wget

8. Add User to Docker Group

       In my case, it is cybrosys

      		usermod -aG docker <user>
       eg: usermod -aG docker cybrosys

9. Starting docker

       		sudo systemctl start docker

10. Running Docker

       		sudo docker run hello-world

11. Stop docker

       		sudo docker stop <processid>


To get the process id run the following command

              	docker ps -a

We successfully installed docker on ubuntu system and now going to setup odoo using the docker 

We need two containers, one for database and one for odoo


12. Run the following command to pull postgres and creates user   


       		sudo docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10

13. Run the following command to pull odoo and it creates an instance. After this command, you can see the service is running on port 8069

       		sudo docker run -p --name odoo --link db:db -t odoo


After this command, you can see that the Odoo server is running on

14. To stop/start odoo service

       		sudo docker start/stop odoo

If you need any assistance in odoo, we are online, please chat with us.

cybrosys youtube




I want to run it on my VPS. That's why I need to configure https. Can you help about it?




adrien tabola

Good morning I have this error when I launch odoo Traceback (most recent call last): File "/usr/lib/python3/dist-packages/werkzeug/", line 205, in run_wsgi execute( File "/usr/lib/python3/dist-packages/werkzeug/", line 193, in execute application_iter = app(environ, start_response) File "/usr/lib/python3/dist-packages/odoo/service/", line 350, in app return, s) File "/usr/lib/python3/dist-packages/odoo/service/", line 128, in application return application_unproxied(environ, start_response) File "/usr/lib/python3/dist-packages/odoo/service/", line 117, in application_unproxied result = odoo.http.root(environ, start_response) File "/usr/lib/python3/dist-packages/odoo/", line 1318, in __call__ return self.dispatch(environ, start_response) File "/usr/lib/python3/dist-packages/odoo/", line 1291, in __call__ return, start_wrapped) File "/usr/lib/python3/dist-packages/werkzeug/", line 599, in __call__ return, start_response) File "/usr/lib/python3/dist-packages/odoo/", line 1471, in dispatch ir_http = request.registry['ir.http'] File "/usr/lib/python3/dist-packages/odoo/modules/", line 176, in __getitem__ return self.models[model_name] KeyError: 'ir.http' - - -





Please correct the pgsql docker run command: docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10





While using the Odoo image we are not able to install any package. What would be the root password to install any packages on Odoo image




James Smith

There are multiple ways to install Odoo. This is one of the methods and explained in detail. As an Odoo implementation service provider, the varieties of odoo installation procedures help us to learn more.




Leave a comment


Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635


Cybrosys Limited
Alpha House,
100 Borough High Street, London,
SE1 1LB, United Kingdom


Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.


Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message