I’ve been running docker-compose build for days, many times per day, and haven’t changed my DOCKERFILEs or docker-compose.yml. I always got this error:
FROM debian:bookworm-slim
# Update and upgrade packages
RUN apt-get update && apt-get upgrade
# Install JDK and any needed utilities
RUN apt-get install -y openjdk-17-jre-headless \
unzip curl procps vim net-tools \
python3 python3-pip python3.11-venv
# We will put everything in the /app directory
WORKDIR /app
# Download and unzip client portal gateway
RUN mkdir gateway && cd gateway && \
curl -O https://download2.interactivebrokers.com/portal/clientportal.gw.zip && \
unzip clientportal.gw.zip && rm clientportal.gw.zip
# Copy our config so that the gateway will use it
COPY conf.yaml gateway/root/conf.yaml
COPY start.sh /app
ADD webapp webapp
ADD scripts scripts
I installed the Docker and Git. I log in the Docker successfully every time when I run those commands.
But the codes did not run successfully as the video shows.
I installed the Docker and Git. I log in the Docker successfully every time when I run those commands.
But the codes did not run successfully as the video shows.
can give me some detailed advice on how to resolve the error?
You mean that i should install a Docker Desktop on my Windows computer.
I installed the Docker successfully, there is a logo one my computer. Everytime I click that logo to start the Docker. And there is a “whale” on the right bottom of my computer.
The name and Chinese in your terminal made it easy to guess
Your compose file has this:
version: '3.8'
Remove it
That is not what I meant.
Bluepuma noted that you’re using docker-compose, which is the older version of docker compose
But in actuality, since you are using Docker Desktop, they are both the same