apk add command error: returned a non-zero code: 1
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to install a Java application by Docker Maven plugin and this is my Dockerfile:
FROM openjdk:8-jre-alpine
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apk add --no-cache curl
ADD ./target/my-java-app.jar /app/
CMD ["java", "-Xmx1024m", "-jar", "/app/my-java-app.jar","> out.log"]
EXPOSE 8001
I obtain the following error:
Unable to build image [my-java-app] : The command '/bin/sh -c apk add --no-cache curl' returned a non-zero code: 1
I'm using Ubuntu 16.04.
docker alpine-linux
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
I want to install a Java application by Docker Maven plugin and this is my Dockerfile:
FROM openjdk:8-jre-alpine
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apk add --no-cache curl
ADD ./target/my-java-app.jar /app/
CMD ["java", "-Xmx1024m", "-jar", "/app/my-java-app.jar","> out.log"]
EXPOSE 8001
I obtain the following error:
Unable to build image [my-java-app] : The command '/bin/sh -c apk add --no-cache curl' returned a non-zero code: 1
I'm using Ubuntu 16.04.
docker alpine-linux
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to install a Java application by Docker Maven plugin and this is my Dockerfile:
FROM openjdk:8-jre-alpine
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apk add --no-cache curl
ADD ./target/my-java-app.jar /app/
CMD ["java", "-Xmx1024m", "-jar", "/app/my-java-app.jar","> out.log"]
EXPOSE 8001
I obtain the following error:
Unable to build image [my-java-app] : The command '/bin/sh -c apk add --no-cache curl' returned a non-zero code: 1
I'm using Ubuntu 16.04.
docker alpine-linux
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I want to install a Java application by Docker Maven plugin and this is my Dockerfile:
FROM openjdk:8-jre-alpine
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apk add --no-cache curl
ADD ./target/my-java-app.jar /app/
CMD ["java", "-Xmx1024m", "-jar", "/app/my-java-app.jar","> out.log"]
EXPOSE 8001
I obtain the following error:
Unable to build image [my-java-app] : The command '/bin/sh -c apk add --no-cache curl' returned a non-zero code: 1
I'm using Ubuntu 16.04.
docker alpine-linux
docker alpine-linux
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 11 mins ago
valiano
1369
1369
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago


Alessio Frabotta
1
1
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Alessio Frabotta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Alessio Frabotta is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Alessio Frabotta is a new contributor. Be nice, and check out our Code of Conduct.
Alessio Frabotta is a new contributor. Be nice, and check out our Code of Conduct.
Alessio Frabotta is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479925%2fapk-add-command-error-returned-a-non-zero-code-1%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password