Docker-alpine: /bin/sh: apk-install: not found when trying to add OpenSSL

Created on 7 May 2017  路  4Comments  路  Source: gliderlabs/docker-alpine

Using FROM node:6.9.4-alpine I am added the following in the Dockerfile:

RUN apk-install openssl

This however fails with:

/bin/sh: apk-install: not found
The command '/bin/sh -c apk-install openssl' returned a non-zero code: 127

How can I overcome this?

question

Most helpful comment

Actually I think it should simply be: RUN apk add --update openssl

All 4 comments

Actually I think it should simply be: RUN apk add --update openssl

The apk-install script is now deprecated. Use apk add --no-cache openssl instead. Related to #18 and #269.

Thanks @andyshinn. May I know the difference between the two?

They both accomplish the same thing. The apk-install script was a small thing we originally added to remove the cache before it was built in to apk. Now the --no-cache is supported from Alpine themselves so our script isn't required.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelshobbs picture michaelshobbs  路  3Comments

robinmonjo picture robinmonjo  路  4Comments

rmNyro picture rmNyro  路  4Comments

crsrivats picture crsrivats  路  5Comments

filiptodoric picture filiptodoric  路  3Comments