How to do it…

Follow these steps to run Docker from the official Odoo image:

  1. Set up the PostgreSQL server docker instance through the following command:
# docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10
  1. Run the PostgresSQL database through the following command:
# docker start db

  1. Set up the Odoo docker instance through the following command:
# docker run -p 8069:8069 --name odoo --link db:db -t odoo
  1. Run the odoo instance through the following command:
# docker start odoo

The preceding command will start the Odoo server on port 8069. In your local machine, you will be able to access the odoo instance at http://localhost: 8069.

If you want to see the status of the running docker containers, then run the following command:

# docker ps

The docker ps command will display the output like this:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset