Skip to main content

Questions tagged [alpine-linux]

Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.

Filter by
Sorted by
Tagged with
217 votes
6 answers
420k views

How to install a specific package version in Alpine?

I have a Dockerfile to build a Docker image that is based on Alpine Linux. Now I need to install a package as part of this Dockerfile. Currently I have: RUN apk update && \ apk upgrade &...
Golo Roden's user avatar
  • 2,479
171 votes
9 answers
353k views

How to install npm in alpine linux

So I can't get to install npm in alpine linux. I thought perhaps I can just do a apk add npm but apparently apk search npm returns nothing, even after a apk update. I'm experimenting with all this ...
Shadi's user avatar
  • 1,955
63 votes
2 answers
45k views

Why is the Alpine Docker image over 50% slower than the Ubuntu image?

I noticed that my Python application is much slower when running it on python:2-alpine3.6 than running it without Docker on Ubuntu. I came up with two small benchmark commands and there's a huge ...
Underyx's user avatar
  • 951
44 votes
3 answers
51k views

How do I check version of alpine mail client?

How do I check on a Unix server what version of the Alpine mail client is installed? I have root access in case that is needed.
Devoted's user avatar
  • 905
32 votes
1 answer
66k views

usermod equivalent for Alpine Linux

I'm building a Docker container, and I need to add my user to a group. usermod is not available in Alpine Linux by default. Apparently, you can add shadow from apk to install usermod, but I would ...
Zak's user avatar
  • 421
17 votes
1 answer
15k views

No such file when it exists

How is this possible? bash: /usr/local/phantomjs/bin/phantomjs: No such file or directory bash-4.3# cd /usr/local/phantomjs/bin bash-4.3# ls phantomjs bash-4.3# The content of /usr/local/phantomjs/...
Sig's user avatar
  • 521
16 votes
1 answer
22k views

Install whereis command on alpine linux

I'm trying to install the whereis command on alpine linux 3.5 Actually I'm running the following command: apk add --update whereis But it is not working since I get this error: fetch http://dl-cdn....
Michele Carino's user avatar
15 votes
3 answers
21k views

can't run nginx in alpine linux (docker)

Well I have set up an alpine linux docker container with nginx on it (apk add nginx) Now I am trying to run nginx. With the simple command nginx This returns the following error: nginx: [emerg] ...
paul23's user avatar
  • 583
13 votes
2 answers
17k views

Is there a way to download individual .apk packages from Alpine repos?

I need to install a couple of packages on a device that does not have internet access. The idea was to download packages, transfer them to the device and then install using apk add --allow-untrusted ...
Viktor's user avatar
  • 131
12 votes
1 answer
17k views

Print list of installed Alpine packages with version in an easily parse-able format

I am trying to get a list of installed packages with version in an easily processable format for an automated tool to parse. I can get this output: / # apk list -i WARNING: Ignoring APKINDEX....
William Overton's user avatar
11 votes
2 answers
44k views

What is the best way to install latest nodejs with npm on alpine linux

I am trying to build my own docker container based on alpine linux and I need to add multiple services in that container (yes it is not recommended as best practice but at the moment my org devops is ...
Andy's user avatar
  • 235
10 votes
5 answers
37k views

Why does Alpine apk report "unsatisfiable constraints" when installing an older version of Node.js?

I'm trying to install an older version of Node.js (4.4.4) on Alpine. Here are my commands: apk update apk add nodejs-lts=4.4.4-r0 When I execute, I get an error (running as root because I'm using ...
Matthew Adams's user avatar
9 votes
1 answer
7k views

What is "modloop" option in Alpine?

I'm trying to understand what is the difference of making Alpine installation medium as read-only type (LiveCD) and as a standard disk mode (where the OS state can be saved). I've seen the modloop ...
Timur Fayzrakhmanov's user avatar
8 votes
2 answers
13k views

What are the differences between Termux, PRoot, Userland, Linux Deploy, AnLinux and Alpine?

What are the differences between Userland, Linux Deploy, AnLinux and Alpine ? What I think I know so far: I think all of them use proot and termux to make Linux distributions run on Android. And ...
Ernest Bunbury's user avatar
7 votes
1 answer
11k views

How can i can create a virtual pulseaudio soundcard on Linux with no audio hardware?

I have a Docker that's running Alpine Linux. There is no hardware audio device at all. I've managed to get pulseaudio running seemingly fine under the user. I've been experimenting with trying to ...
DhP's user avatar
  • 243
6 votes
3 answers
14k views

Forward X11 over an SSH connection to container's host?

I'd like to run a containerized GUI application from a remote machine. I don't want to solve this problem by adding an ssh host to the container because I already have access to the host machine ...
M-Pixel's user avatar
  • 252
6 votes
1 answer
17k views

How to add a path to PATH variable in linux alpine for the entire machine?

I know I can export PATH="$PATH:my_path" to add to PATH variable in current session. I also know that I can add this line to ~/.bash_profile to make it persist across sessions for my user: ...
Saeed Neamati's user avatar
4 votes
1 answer
7k views

Running Alpine Linux on QEMU ARM guests

I'm trying to build packages for Alpine Linux, which has official support for x86, x86_64, armhf, aarch64, s390x, ppc64le, so I want to build for all of these architectures. Currently I'm using QEMU'...
DDoSolitary's user avatar
4 votes
2 answers
4k views

How do I download the source for Alpine Linux packages

I'm trying to get the source packages for various Alpine packages that are installed on my images (for compliance reasons) and I'm having trouble tracking them down. For instance, I have alpine-...
mpeters's user avatar
  • 288
3 votes
1 answer
6k views

Installing Alpine Linux fails to scan the mirror list with "403 Forbidden"

I'm trying to install Alpine Linux running on QEMU and I've got the following errors (I marked the error messages with <===): localhost:~# setup-alpine Available keyboard layouts: ... Which ...
wataash's user avatar
  • 189
3 votes
2 answers
6k views

No network after changing static IP address on Alpine Linux on Raspberry Pi

I'm running Alpine Linux on Raspberry Pi. I'm trying to set a static IP address. So I changed the contents of /etc/network/interfaces file from auto lo iface lo inet loopback auto eth0 iface eth0 ...
Michal Artazov's user avatar
3 votes
1 answer
5k views

What is a prescriptive way for managing the permissions for mounted volumes in Alpine-based Docker?

When you build an image you can assign ownership (chown) and change permissions (chmod) of paths within the image. However, when a volume is mounted from either the host or another container the ...
Sean Quinn's user avatar
3 votes
1 answer
801 views

Install latest hugo package version on Alpine

I want to install the latest version of the Hugo package with apk in Alpine. based on pkg detail, the latest version is 0.114.1-r0 but when I put to run this code in Dockerfile, this has error: ENV ...
njfamirm's user avatar
  • 133
3 votes
1 answer
8k views

How to install specific version of libxml2 on Alpine linux without downgrade of whole alpine to v3.1?

Latest available version of libxml2 is 2.9.4-r2 (alpine linux v3.5). But due to regression bug I need to install 2.9.3 or earlier. How can I do this without downgrade of whole alpine to v3.1? I'm ...
Paul Serikov's user avatar
3 votes
0 answers
3k views

Install NodeJS specific version on Alpine Linux via APK

On Ubuntu based systems we can run the install script like this curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash - sudo apt-get install -y nodejs however on Alpine linux, the debian ...
Tim Kretschmer's user avatar
3 votes
1 answer
1k views

Does Alpine drop packages from old base images?

I am currently using alpine:3.13 as my base image. There, I had installed nodejs using: apk add nodejs=~14.15. However, the 3.13 branch contains a new nodejs (14.16) and 14.15 does not exist anymore. ...
Ankit Koirala's user avatar
3 votes
0 answers
986 views

Create APK package from existing files

I have a bunch of files in several directories and would like to create an APK package out of them and publish it in a private repository. For dpkg-deb + apt-ftparchive on Debian/Ubuntu or for ...
Disassembler's user avatar
3 votes
0 answers
865 views

Java memory allocation error inside a Docker container when host machine is running Alpine Linux

I want to run Jenkins in a Container where my host machine is running Alpine Linux. I have an Ansible playbook that starts the Jenkins container. However, the container exits as soon as it starts. I ...
Tom's user avatar
  • 31
2 votes
1 answer
7k views

Getting the version of an installed package sometime return no result on alpine

In Linux Alpine I use apk version package to retrieve the installed version of a package. For some reason, some packages simply does not return any result. Is there another way to do that or am I ...
Julien B.'s user avatar
  • 156
2 votes
2 answers
1k views

Intermittent network timeout in docker

I am experiencing a network/http timeout issue with a docker-in-docker app that's running in a Kubernetes cluster and I need help in figuring out what may be happening. I am running a docker container ...
Sushil's user avatar
  • 141
2 votes
2 answers
3k views

How to configure Terminal Emulator on Alpine Linux?

I am using XFCE and when I clicked on Terminal Emulator its ask you to put what program to execute. I wrote "terminal" and now it shows this message: "Failed to execute child process "terminal" (no ...
Rodrigo Camargos's user avatar
2 votes
1 answer
5k views

conda install in alpine image

I am tying to install conda in an alpine image and getting the below error which indicates that the exe is missing from the download. I was reading that the conda install is linked to glibc and that ...
justaguy's user avatar
  • 229
2 votes
0 answers
491 views

Cannot install g++6 on alpine3.9

I need to install g++6 for building spidermonkey->couchdb on alpine3.9. I am unable to install it. Note that it is on the package list available on alpine 3.9 here. $ docker run -ti alpine:3.9 sh / # ...
Mihir's user avatar
  • 21
2 votes
0 answers
386 views

Python wx-widgets in Alpine Linux

I'm trying to install Trelby in Alpine Linux. When I launch python setup.py install, I get the following error: alpine# python setup.py install Traceback (most recent ...
black-clover's user avatar
2 votes
0 answers
4k views

Installl a specific package version of Apache in Alpine 3.4

I would like to install Apache 2.4.23-r1 for my development. However, in Alpine Linux the package has been upgraded to 2.4.25-r1. Package Repository to see the history of the package. / # apk add ...
Shiro's user avatar
  • 697
2 votes
1 answer
2k views

Fixate version alpine linux apk package (in container)

It is possible to specify version when installing apk on alpine for example apk add ffmpeg=3.0.7-r0. In containers it is a typical scenario, because you want kind of immutable thing, so you add in ...
WHITECOLOR's user avatar
1 vote
1 answer
6k views

How to set home directory on Alpine Linux?

On most Linuxes one would typically use usermod, but Alpine doesn't seem to have it, is there some other way to set home directory on Alpine?
Maxim's user avatar
  • 111
1 vote
1 answer
4k views

Failed to run curl 7.83.0 on alpine

I'm trying to install curl in 7.83 on an alpine environment but it fails to run the command and give me the following error Error relocating /usr/bin/curl: curl_easy_nextheader: symbol not found Error ...
yodamad's user avatar
  • 113
1 vote
1 answer
7k views

Cron jobs not running on Kubernetes + Alpine linux

I am trying to run a cron job on Alpine Linux docker image which is then pushed in Kubernetes container. The Cron job is that I want the container to restart itself after every 15 mins. So my command ...
Nitesh Joshi's user avatar
1 vote
3 answers
5k views

Network-manager: store secrets for automatic openvpn connection

Because I don't have access to a gui, I have added my openvpn password to the network-manager connection using: $ sudo nmcli con mod CONNAME vpn.secrets "password=MYPASS" I can confirm the ...
Mr. Wrong's user avatar
  • 113
1 vote
1 answer
1k views

Curl with GSS-API on Alpine Docker

I am trying to get curl installed in a Dockerfile with the GSS-API, SPNEGO, or GSS-Negotiate features installed so I can use the --negotiate flag. How can I configure curl to be installed with that ...
Alex W's user avatar
  • 2,016
1 vote
1 answer
5k views

How to download file from docker container image without curl / wget?

I'm in the process of writing container features and I want to be able to install package on debian:latest, ubuntu:latest and alpine:latest. To do so, I'm willing to leverage pacapt, a pure shell ...
Édouard Lopez's user avatar
1 vote
1 answer
4k views

MySQL command not found in Docker container

After getting a terminal into a Docker container (postgres:11.1-alpine) and installing MySQL using apk (apk add mysql) I still receive sh: mysql: not found and bash: mysql: command not found when ...
Gumpf's user avatar
  • 111
1 vote
1 answer
2k views

IntelliJ IDEA or Pycharm not opening on Alpine Linux

So I am trying to migrate to Alpine Linux; however, I cannot seem to install two IDEs, Pycharm and IntelliJ IDEA. They are both throwing me the same error whenever I attempt to run either pycharm.sh ...
user avatar
1 vote
1 answer
3k views

Make postfix use sasl / auth plain for outbound mail to a relay server

My postfix does not send AUTH PLAIN to the outgoing relay server. It must have worked a couple of days ago, but now I get "relay not permitted" bounce mails. The mail system runs in an Alpine Linux ...
Rainer Schwarze's user avatar
1 vote
1 answer
4k views

Cannot setup network interfaces when installing Linux Alpine with setup-alpine

I am trying to install Linux Alpine from a USB but it fails on setup-alpine, more specifically on setup-interfaces script. I have the ethernet cable connected and wifi enabled. It doesn't seem to ...
kms333's user avatar
  • 111
1 vote
1 answer
3k views

How to install Chromium masked package on Alpine Linux 3.8?

I am using Vagrant with VirtualBox, and running Alpine 3.8 inside: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'generic/alpine38'... ==&...
Alexandre's user avatar
  • 113
1 vote
1 answer
8k views

ImageMagick installation in Docker Alpine

So I have this Dockerfile that attempts to install ImageMagick the following way: FROM ruby:2.4-alpine ... RUN apk --update add imagemagick ... The point is that the container doesn't recognizes ...
Fdo's user avatar
  • 111
1 vote
1 answer
6k views

Socat not closing tcp connection

I use socat 1.7.3.1-r0 and run following command on an alpine 3.3 linux server: socat -d -d -d PTY,link=/dev/ttyFOOBAR,echo=0,raw,unlink-close=0 TCP-LISTEN:7000,forever,reuseaddr Socat will listen ...
DarkLeafyGreen's user avatar
1 vote
0 answers
50 views

Find name of equivalent packages: from Ubuntu to Alpine

Is there a way of finding the equivalent package from a list of Ubuntu packages, for Alpine? I'm aware of repology, apt-file, the apt-cache, apk search, https://pkgs.alpinelinux.org and https://...
Samuel Marks's user avatar