Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
Dockerodoo-binOdoo12.0
1 Respondre
18406 Vistes
Avatar
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
Avatar
Descartar
Avatar
Coding Dodo
Best Answer

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
Avatar
Descartar
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!

Registrar-se
Related Posts Respostes Vistes Activitat
How to open Odoo 12 command line on windows?
commands shell odoo-bin Odoo12.0
Avatar
Avatar
1
de jul. 19
12797
Custom Dashboard using js
Odoo12.0
Avatar
Avatar
1
d’abr. 25
4733
How to Limit Pos Category in Odoo 12 Shop?
Odoo12.0
Avatar
0
de març 24
2021
how to Install odoo 15 with docker? Solved
Docker
Avatar
Avatar
Avatar
Avatar
Avatar
4
de des. 23
47935
where is the POS Odoo logo located on Odoo installed on Docker? - Odoo 16 Community version
Docker
Avatar
Avatar
1
de gen. 23
4550
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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