Microservices-Based-Algorithmic-Trading-System icon indicating copy to clipboard operation
Microservices-Based-Algorithmic-Trading-System copied to clipboard

`wget: command not found` error while docker compose

Open trinityzhub opened this issue 2 years ago • 1 comments

docker-compose up -d — build having error



 => [minio-image auth] minio/minio:pull token for registry-1.docker.io                                                                                            0.0s
 => [mlflow-image 2/3] COPY requirements.txt /tmp/                                                                                                               15.9s
 => [mlflow-image 3/3] RUN pip install --requirement /tmp/requirements.txt                                                                                      239.0s
 => [jupyter-image auth] jupyter/scipy-notebook:pull token for registry-1.docker.io                                                                               0.0s
 => ERROR [minio-image 2/2] RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc &&     chmod +x mc                                                       55.3s
------
 > [minio-image 2/2] RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc &&     chmod +x mc:
32.15 /bin/sh: wget: command not found
------
failed to solve: process "/bin/sh -c wget https://dl.min.io/client/mc/release/linux-amd64/mc &&     chmod +x mc" did not complete successfully: exit code: 127
[ubbe@e45kattegat Microservices-Based-Algorithmic-Trading-System]$ docker compose up -d --build
WARN[0000] The "MAPBOX_API_KEY" variable is not set. Defaulting to a blank string. 
[+] Building 33.5s (29/33)                       


trinityzhub avatar Jul 08 '23 19:07 trinityzhub

replace Docker file on path dockerfile_minio/Dockerfile

FROM alpine:3.20 AS downloader ARG MC_ARCH=linux-amd64 RUN apk add --no-cache curl
&& curl -L "https://dl.min.io/client/mc/release/${MC_ARCH}/mc" -o /mc
&& chmod +x /mc

FROM minio/minio:latest COPY --from=downloader /mc /usr/local/bin/mc

D-a-k-a-n avatar Aug 29 '25 14:08 D-a-k-a-n