Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created September 16, 2019 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaihendry/d15226f8cb876b6a37dc3d86b88bae90 to your computer and use it in GitHub Desktop.
Save kaihendry/d15226f8cb876b6a37dc3d86b88bae90 to your computer and use it in GitHub Desktop.
mongodb (missing)
[hendry@t480s reset]$ docker build -t uneet/reset-demo .
Sending build context to Docker daemon 868.9kB
Error response from daemon: Dockerfile parse error line 2: ADD requires at least two arguments, but only one was provided. Destination could not be determined.
[hendry@t480s reset]$ vim Dockerfile
[hendry@t480s reset]$ docker build -t uneet/reset-demo .
Sending build context to Docker daemon 868.9kB
Step 1/4 : FROM alpine:edge
edge: Pulling from library/alpine
01fa3b4a8bd4: Pull complete
Digest: sha256:484dfd8f6ffc7237d4d91cb107dad73f4594c33eacfd0fe77c284e36bad9303d
Status: Downloaded newer image for alpine:edge
---> 70997d35b3ed
Step 2/4 : RUN apk add --no-cache mysql-client mongodb aws-cli bash
---> Running in fef1fa352faf
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
aws-cli (missing):
required by: world[aws-cli]
mongodb (missing):
required by: world[mongodb]
The command '/bin/sh -c apk add --no-cache mysql-client mongodb aws-cli bash' returned a non-zero code: 2
[hendry@t480s reset]$ cat Dockerfile
FROM alpine:edge
RUN apk add --no-cache mysql-client mongodb aws-cli bash
ADD * /
CMD ["/start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment