Follow these steps to run Docker from the official Odoo image:
- 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
- Run the PostgresSQL database through the following command:
# docker start db
- Set up the Odoo docker instance through the following command:
# docker run -p 8069:8069 --name odoo --link db:db -t odoo
- 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: