-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker build is broken #473
Comments
Can you provide some more detail? I can't reproduce: 😕 $ docker build --pull https://github.com/docker-library/mongo.git#:4.4
Sending build context to Docker daemon 29.18kB
Step 1/20 : FROM ubuntu:bionic
bionic: Pulling from library/ubuntu
Digest: sha256:538529c9d229fb55f50e6746b119e899775205d62c0fc1b7e679b30d02ecb6e8
Status: Image is up to date for ubuntu:bionic
---> 4eb8f7c43909
...
Step 9/20 : ARG MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
---> Running in 8331bc5611ab
Removing intermediate container 8331bc5611ab
---> 897879f53032
Step 10/20 : ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
---> Running in 3bcec62aa4ba
Removing intermediate container 3bcec62aa4ba
---> 6789f9ce0727
Step 11/20 : ENV MONGO_MAJOR 4.4
---> Running in 841b2982cdda
Removing intermediate container 841b2982cdda
---> 9c3041177f12
Step 12/20 : RUN echo "deb http://$MONGO_REPO/apt/ubuntu bionic/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
---> Running in e5687ba0221b
deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse
Removing intermediate container e5687ba0221b
---> 7b31d6744be8
...
---> 66ede2bb496e
Step 20/20 : CMD ["mongod"]
---> Running in c92f0c962b78
Removing intermediate container c92f0c962b78
---> d6341af03a5c
Successfully built d6341af03a5c |
Well, it's weird that it works for you because clearly from Line 83 in 6377a52
ARG on the same line and that doesn't work on my side. From the Docker documentation https://docs.docker.com/engine/reference/builder/#arg, it seems that ARG is only one value at a time.
|
What's your Docker version?
|
19.03.8, not the newest I agree. But not that old 😃 |
This seems to only be a limitation when using older buildkit for |
Following the changes in 791d400, building the Docker image for MongoDB 4.4 doesn't work because
Error response from daemon: Dockerfile parse error line 83: ARG requires exactly one argument
.This should be corrected, at least in 791d400#diff-64bdf01b91b9801069c15f8fd273c15306316bc74320059836a839d62307cfae.
The text was updated successfully, but these errors were encountered: