Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Odoo 12 Docker: Start odoo container with odoo-bin parameters

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
Dockerodoo-binOdoo12.0
1 Răspunde
18440 Vizualizări
Imagine profil
Paulo Matos

Hello everyone,

I am testing Odoo using Docker and using standard command line arguments to start/stop containers.

Pull/Start:

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10
docker run -p 8069:8069 --name odoo --link db:db -t odoo

After that, every time I need to start containers I use:

docker start db
docker start odoo

My question:

How can I start odoo container with odoo-bin parameters (-u module_name, -d database name, etc.)?

I have tried:

docker start odoo -- -u module name -d database_name

...and no luck

Can anyone help me please?

Thank you in advance


0
Imagine profil
Abandonează
Imagine profil
Coding Dodo
Cel mai bun răspuns

Hello, -- -u module name -d database_name should be used with docker run.
To update your module, combine what you did in the run and in the start commands like that:

docker run -p 8069:8069 --name odoo --link db:db -t odoo -- -u module name -d database_name
Then you can use the start and stop commands again.

A better solution would be to use the docker-compose tool which is more convenient.  You could have a docker-compose.yml file similar to this one (adapt it for the odoo version you are running)

version: '2'
services:
  web:
    image: odoo:11.0
    depends_on:
      - db
    ports:
      - "8074:8069"
    volumes:
      - ./conf:/etc/odoo
      - ./my_addons:/mnt/extra-addons
    command: odoo -u module_name -d database_name
  db:
    image: postgres:9.4
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
Notice the "command: odoo ..." line, it is where you will be able to add arguments.

Place this file at the root of your project and use "docker-compose up" and "docker-compose stop" to start and stop your project. You then modify only the docker-compose.yml file to choose odoo command-line arguments

3
Imagine profil
Abandonează
Paulo Matos
Autor

Hello there,

Thank you very much for your reply.

So, I will have to delete (rm) my container and recreate it adding the desired parameters? Asking because I cannot have two container with same name.

And if I need to update several databases and/or specific parameters to send, will have to proceed the same way for every database?

After update process is finished, I will have to re-create the container once again since the parameters will be "saved" with the container startup parameters and do not want to start container always with those parameters?

Thank you once again

Paulo Matos
Autor

I am new to docker and found an update command... "docker update container ... options".

Will try this one to see if I can update container run parameters...

Coding Dodo

I cannot answer more than one time per question, sorry. So I have updated my initial answer to a solution that may fit what you need.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
How to open Odoo 12 command line on windows?
commands shell odoo-bin Odoo12.0
Imagine profil
Imagine profil
1
iul. 19
12823
Custom Dashboard using js
Odoo12.0
Imagine profil
Imagine profil
1
apr. 25
4767
How to Limit Pos Category in Odoo 12 Shop?
Odoo12.0
Imagine profil
0
mar. 24
2035
how to Install odoo 15 with docker? Rezolvat
Docker
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
dec. 23
47955
where is the POS Odoo logo located on Odoo installed on Docker? - Odoo 16 Community version
Docker
Imagine profil
Imagine profil
1
ian. 23
4553
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now