Welcome! Log In Create A New Profile

Advanced

Trouble installing nginx-plus on Alpine docker image

Posted by Carl T. 
Trouble installing nginx-plus on Alpine docker image
June 30, 2020 11:03AM
Greetings,

I have an NGINX+ free trial and I want to get an NGINX+ container up and running for my bosses before we purchase a paid subscription.

So I'm following the instructions for installing NGINX+ on Alpine Linux and creating a docker NGINX+ image based on Alpine:3.10. The docker build command fails at line 29 (see attached Dockerfile).

apk add nginx-plus

All the previous commands succeed. The error reads...

ERROR: https://plus-pkgs.nginx.com/alpine/v3.10/main: Permission denied
WARNING: Ignoring APKINDEX.affd029a.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
nginx-plus (missing):
required by: world[nginx-plus]

The build command looks like so...

PS> $version = "1.0"
PS> $proxyUrl = "http://" + $username + ":" + $password + "@our-company-proxy:11111"
PS> docker build --tag nginxplus:$version --build-arg http_proxy=$proxyUrl --build-arg https_proxy=$proxyUrl --no-cache .

Does anyone know how to fix this error?

Thanks!

Carl T.
Attachments:
open | download - Dockerfile.txt (1.6 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready