Questions tagged [alpine-linux]

Alpine Linux is a small, simple and secure Linux distribution based on musl libc and busybox. For questions related to the Alpine.js framework, use the tag [alpine.js].

The Alpine Linux distribution is born from a fork of another Linux project called LEAF (Linux Embedded Appliance Framework Project) that was itself forked from a project aimed at keeping a Linux distribution fitting on a floppy disk.

With its light-weighted approach, Alpine is very popular for embedded systems and containers alike, as it also offers quick boot-up time. A container running Alpine would take no more than 8 MB; while an installation on a disk would require around 130 MB.

This small size is also achieved with simplicity in mind. Alpine uses its own package manager, called apk and is coming with a really limited set of tools:

  • musl, for a minimal libc
  • openrc, as the init system
  • the coreutils of busybox

Alpine is making use of techniques like Position Independent Executables (PIE) and stack smashing protection, which protects the OS from some common vulnerabilities.

Resources

Related tags

1772 questions
56
votes
9 answers

How to install Go in alpine linux

I am trying to install Go inside an Alpine Docker image. For that I downloaded tar file from here inside my alpine docker image, untar it using following command: tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz exported PATH to have go binary…
Yogesh Jilhawar
  • 5,605
  • 8
  • 44
  • 59
56
votes
9 answers

Installing numpy on Docker Alpine

I'm trying to install numpy in a docker container based on Alpine 3.1. I'm using the following Dockerfile: FROM alpine:3.1 RUN apk add --update make cmake gcc g++ gfortran RUN apk add --update python py-pip python-dev RUN pip install cython RUN pip…
TDN169
  • 1,397
  • 2
  • 13
  • 31
52
votes
12 answers

docker can't build because of alpine error

Hi I am trying build a docker and Docker file looks like this. FROM alpine LABEL description "Nginx + uWSGI + Flask based on Alpine Linux and managed by Supervisord" # Copy python requirements file COPY requirements.txt /tmp/requirements.txt RUN…
BhanuKiran
  • 2,631
  • 3
  • 20
  • 36
52
votes
1 answer

Getting apt-get on an alpine container

I have to install a few dependencies on my docker container, I want to use python:3.6-alpine version to have it as light as possible, but apk package manager which comes with alpine is giving me trouble so I would like to get the apt-get package…
NotSoShabby
  • 3,316
  • 9
  • 32
  • 56
49
votes
5 answers

Cannot "pip install cryptography" in Docker Alpine Linux 3.3 with OpenSSL 1.0.2g and Python 2.7

Solved Wow, these guys are fast... It's basically this https://github.com/pyca/cryptography/issues/2750 It turned out that a security update for openssl was released (DROWN Attack) and that update contained an unexpected function signature change…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
38
votes
6 answers

How do I install XDebug on docker's official php-fpm-alpine image?

I'm using wordpress:php7.1-fpm-alpine which is based on php:7.1-fpm-alpine (https://github.com/docker-library/wordpress/blob/master/php7.1/fpm-alpine/Dockerfile). I've tried RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug which…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
38
votes
1 answer

Docker alpine image's basic commands are not working

docker started to produce weird bugs when I was using a few simple alpine based containers. Two of these problems are: rc-update was not found when i was trying to use it after installing openssh package, there was nothing in /etc/ssh or there was…
SLOBY
  • 1,007
  • 2
  • 10
  • 24
35
votes
15 answers

UnrecognizedClientException error when authenticating on aws-cli

When I pull a clean Alphine Linux Docker image, install aws-cli on it and try to authenticate myself with aws ecr get-authorization-token --region eu-central-1 I keep getting the following error: An error occurred (UnrecognizedClientException) when…
35
votes
2 answers

Where to set system default environment variables in Alpine linux?

I know, with Ubuntu, you can set default values for environment variables in /etc/environment; I do not see that file in Alpine linux. Is there a different location for setting system-wide defaults?
1ijk
  • 1,417
  • 2
  • 19
  • 31
32
votes
4 answers

Does Alpine have known DNS issue within Kubernetes?

Lately, we've faced some DNS issues with micro-services based on Alpine image (node:12.18.1-alpine) on EKS when trying to resolve "big" DNS queries (When the answer is larger than 512M). So I've tried running this script for testing the DNS…
Shahaf Yehezkel
  • 431
  • 1
  • 4
  • 5
32
votes
8 answers

How to solve "Could not find any Python installation to use" with docker node alpine Image when adding bcrypt to package.json?

Before I added bcrypt to my package.json, everything was working fine. Now, I get the error message below. This is an excerpt of my package.json: "dependencies": { "bcrypt": "3.0.6", "express": "^4.17.1", "mongodb": "^3.3.1", …
Jens
  • 741
  • 2
  • 7
  • 15
31
votes
2 answers

How can we install google-chrome-stable on alpine image in dockerfile using dpkg?

I am trying to install google-chrome-stable on alpine image using dpkg. However, the dpkg is installed but it does not install google-chrome-stable and return this error instead? Is there a way to install google-chrome-stable in alpine image either…
Code father
  • 585
  • 1
  • 11
  • 23
31
votes
3 answers

ERROR: unsatisfiable constraints using apk in dockerfile

I'm trying to install postgis into a postgres container. Dockerfile: FROM postgres:9.6.4-alpine RUN apk update \ && apk add -u postgresql-9.6-postgis-2.4 postgresql-9.6-postgis-2.4-scripts \ && rm -rf /var/lib/apt/lists/* COPY…
Slim
  • 5,527
  • 13
  • 45
  • 81
31
votes
4 answers

docker alpine /bin/sh script.sh not found

I'm trying to build a docker image that has the openjdk:8-alpine as base. The problem is when I try to execute a script.sh, returning me the following message: /bin/sh: bin/script.sh: not found The script.sh is in the bin/ folder correctly,…
Thiago G. Alves
  • 1,202
  • 1
  • 14
  • 24
31
votes
2 answers

Explanation of the "--update add" command for Alpine Linux

I'm trying to understand the Dockerfile https://hub.docker.com/r/rdsubhas/tor-privoxy-alpine/~/dockerfile/, which contains a RUN executive with apk --update add privoxy tor@testing runit@testing I wanted to check my understanding of how the apk…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526