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
0
votes
1 answer

What version scheme is this alpine version following?

I was playing around with a script that allows me to find out the OS version of docker images. Trying the latter on alpine:edge returned this 3.13.0_alpha20200626. Printing /etc/os-release outputs the following / # cat /etc/os-release NAME="Alpine…
0
votes
1 answer

django.db.utils.OperationalError: could not translate host name "db" to address: Name does not resolve

my docker-compose.yml file version: "3" services: app: build: context: . ports: - "8000:8000" volumes: - ./app:/app command: > sh -c "python manage.py runserver 0.0.0.0:8000" environment: -…
0
votes
1 answer

Can I avoid or cache a `usermod` and `chown` command during docker build?

In my company, we have a common pattern of running usermod near the of the Dockerfile in order to get the permissions straight. E.g.: FROM php:7.3-fpm-alpine ... COPY . . RUN usermod -u $USER_ID www-data && chown -R www-data:www-data $COMPOSER_HOME…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
0
votes
1 answer

How to detect new versions of docker images when tags are mutable and does not reference base image version?

Postgres is just an example, I'm interested in the general case. I use the official postgres docker image from docker hub. It seems to be tagged with postgres versions (postgres:11.8-alpine) which of course make sense, and I can spot new versions by…
tsoiland
  • 101
  • 7
0
votes
1 answer

pip failed to compile wxPython 4.0.7+ on Alpine 3.12.0 with Python 3.8.3

Upgrading python from 2.7 to 3.8. Tried to install wxPython 4.0.7, 4.0.7post2 and 4.1.0, all failed with below error message: In file included from /tmp/pip-install-irzbquj6/wxPython/ext/wxWidgets/src/common/xlocale.cpp:31: …
sleepy
  • 55
  • 7
0
votes
1 answer

Minikube, python alpine : python command not found

this might sound like a very silly question for K8's experts. But I have been struggling with this for a while, thus the question below. I'm trying to deploy locally a simple Kubernetes application through Minikube and docker to test the sidecar…
AlessioG
  • 576
  • 5
  • 13
  • 32
0
votes
1 answer

Alpine Python image throw exec user process caused "no such file or directory" where Raspian/Debian works

A simple Dockerfile that executes a shell script as entrypoint like this FROM python:3 WORKDIR /app COPY . . RUN chmod +x entrypoint.sh CMD ["python", "/app/src/api.py"] ENTRYPOINT ["./entrypoint.sh"] works: entrypoint.sh is called, which itself…
Lion
  • 16,606
  • 23
  • 86
  • 148
0
votes
0 answers

Can't run ARM binary built on ARM docker - applet not found

I'm having issues with making my docker emulate different architecture. I've followed this tutorial to the letter in order to be able to build multi-architecture images: https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux/ My…
Dominus
  • 808
  • 11
  • 25
0
votes
1 answer

Docker build: Extentions not loading via apk: exif, gd, pdo_mysql, pecl-redis. What can I do to fix my dockerfile? From php:7.4-fpm-alpine

I'm using FROM php:7.4-fpm-alpine as my image and trying to load everything I need with RUN add apk, everything seems to build correctly, but some things are not actually working when I try to use them. Searching around I seem to have found…
Juan
  • 1
  • 2
0
votes
0 answers

Docker: Opening the tcp socket failed

I have a docker image(base image: alpine) in raspberry pi in which there is a program to convert OPCUA messages to MQTT by connecting it to OPCUA server and MQTT broker. Both the OPCUA server and MQTT broker are on a same Ubuntu vm. When I try to…
0
votes
2 answers

Failed to install pyorc on alpine docker container

Getting compilation error - which is dependent on ORC binaries. In file included from src/_pyorc/_pyorc.cpp:1: src/_pyorc/Reader.h:7:10: fatal error: 'orc/OrcFile.hh' file not found #include "orc/OrcFile.hh" ^~~~~~~~~~~~~~~~ 1 error…
shahjapan
  • 13,637
  • 22
  • 74
  • 104
0
votes
0 answers

Cannot open new SSH connections after a certain amount of time

I have a web server running Alpine linux and OpenSSH. When I power on the server, for about an hour or two I am able to open SSH connections and send commands fine. However, after that, even though the server is up, it does not respond to pings and…
sugarfi
  • 127
  • 1
  • 11
0
votes
0 answers

alpine krb5 install kerberos commands missing in docker container

I have created a docker image based on alpine 3.8 that includes krb5. I can then create a container and I can see that krb5 packages are installed but none of the kerberos commands are in the /bin e.g kinit klist I also included all the…
0
votes
1 answer

Enable mod_gzip in docker apache httpd alpine

I've setup a httpd with docker: FROM httpd:2.4-alpine # load required modules (unfortunately gzip is not available) RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf RUN sed -i '/LoadModule deflate_module/s/^#//g'…
davey
  • 1,666
  • 17
  • 24
0
votes
2 answers

Use asyncpg python module in alpine docker image

I'm trying to build an image based on python:3-8.alpine, using the python module asyncpg. Here is a part of my Dockerfile: FROM python:3.8-alpine RUN apk add gcc RUN apk add python3-dev RUN pip3 install asyncpg I added gcc and python3-dev because…
iAmoric
  • 1,787
  • 3
  • 31
  • 64
1 2 3
99
100