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

How do I fix this Docker --link db:db error running the current Odoo docker 13.0 image

Abonare

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

Această întrebare a fost marcată
linkdbdockerDocker
1 Răspunde
9612 Vizualizări
Imagine profil
Jonathan

Although I believe I am running docker as the Odoo Docker Hub "How To > Start an Odoo Instance" (https://hub.docker.com/_/odoo) describes, the --link arg still complains when you try to run the factory odoo image and try link the db container to the odoo container:

My setup:
MacOS 10.13.6
Docker version 20.10.0, build 7287ab3
Odoo Docker Hub Image tagged 13.0 pulled and available
Successfully running pulled postgres container which shows its name as "db"

The attempt to docker run the odoo image tagged odoo:13.0 below, (mildly sanitized for posting):

terminal-prompt: docker images
REPOSITORY   TAG        CREATED        SIZE
odoo                 13.0       6 days ago      1.21GB
postgres              10       7 days ago      200MB

terminal-prompt: docker container ls
IMAGE           CREATED       STATUS         PORTS        NAMES
postgres:10   4 hours ago   Up 4 hours   1234/tcp   db

terminal-prompt: docker stats
NAME      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O       BLOCK I/O         PIDS
db              0.00%     47.75MiB / 1.942GiB         2.40%    1.66kB / 0B   36.8MB / 40.8MB    7

terminal-prompt: docker run odoo:13.0 -p 8069:8069 --name odoo --link db:db -t odoo

Database connection failure: could not translate host name "db" to address: Name or service not known


Has anyone else successfully run the 13.0 tagged docker image recently?

Thanks in advance.

0
Imagine profil
Abandonează
Imagine profil
odoochina.dev
Cel mai bun răspuns

Here mentioned https://github.com/docker/for-mac/issues/2670 in macos, it's hard to link to internal IP addresses used by containers (some difference w.r.t docker linux)

You could install docker desktop for mac and try again.


but, You'd better follow the docker-compose.yml section (with an odoo.conf) mentioned in https://hub.docker.com/_/odoo,it's benefit that:

1) more like a prod env, no changes needed when later you move to production.

2) you can name the odoo/db to any name and use any port -- multi odoo&db instances can running at the same time for debuging/comparing purpose.

0
Imagine profil
Abandonează
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
What http server is used in official docker image?
http_server docker Docker
Imagine profil
Imagine profil
1
mai 24
2374
Odoo docker error creating log file. Rezolvat
odoo docker Docker
Imagine profil
Imagine profil
Imagine profil
2
oct. 23
7455
How to work with docker-image? Rezolvat
documentation docker Docker
Imagine profil
Imagine profil
1
mar. 25
10152
500 Internal Server Error after uninstalling the website module
docker Docker v15
Imagine profil
0
mai 22
3027
odoo docker-compose exited with code 1 Rezolvat
installation docker Docker
Imagine profil
Imagine profil
Imagine profil
3
sept. 21
8741
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