how-to-install-odoo-using-docker.png
Blogger_636313953187816113.jpg
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


2.Add key for our docker

		sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D


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

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


add the following line this

      		deb https://apt.dockerproject.org/repo 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- https://get.docker.com/ | 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_USER=odoo --name db postgres


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 0.0.0.0:8069:8069 --name odoo --link db:db -t odoo

 

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


14. To stop/start odoo service

       		sudo docker start/stop odoo




Comments

0


Leave a comment