DEV Community

Shubham Mojad
Shubham Mojad

Posted on

Docker Compose up --build not working

RHEL version - Red Hat Enterprise Linux release 8.9 (Ootpa)

[root@acer abmcl]# ls
assets backend docker docker-compose.yml docs frontend nginx package.json package-lock.json README.md server
[root@acer-BILLATMTN abmcl]# docker compose up --build
WARN[0000] /home/BillingAutomation/abmcl/docker-compose.yml: version is obsolete
[+] Building 51.1s (7/9) docker:default
=> [backend internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 299B 0.0s
=> [backend internal] load metadata for docker.io/library/python:3.11 2.1s
=> [backend internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [backend 1/5] FROM docker.io/library/python:3.11@sha256:01b1035a2912ade481cf6db2381dc10c97ee19a4f670b056138517e22d8ea1c5 0.0s
=> [backend internal] load build context 0.0s
=> => transferring context: 783.83kB 0.0s
=> CACHED [backend 2/5] WORKDIR /server 0.0s
=> CACHED [backend 3/5] COPY requirements.txt . 0.0s
=> [backend 4/5] RUN pip install -r requirements.txt 48.9s
=> => # WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(' => => # tion object at 0x7f4036ad0110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fastapi/
=> => # WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(' => => # tion object at 0x7f4036ad0910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fastapi/
=> => # WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(' => => # tion object at 0x7f4036ab0810>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fastapi/

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay