Questions tagged [alpine-linux]

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

Alpine Linux is an independent, non-commercial, general purpose Linux distribution designed for power users who appreciate security, simplicity and resource efficiency.

https://alpinelinux.org/

109 questions
228
votes
6 answers

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 && \ apk add git Apparently this is a bad idea, as the…
Golo Roden
  • 2,589
177
votes
9 answers

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 from the nginx:alpine docker image, i.e. docker run…
Shadi
  • 2,015
68
votes
2 answers

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 difference visible between the two operating systems,…
Underyx
  • 1,001
44
votes
3 answers

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
  • 925
  • 3
  • 8
  • 13
34
votes
1 answer

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 prefer to not install additional packages. Is there…
Zak
  • 441
17
votes
1 answer

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/bin is the phantomjs file but when I try to execute…
Sig
  • 521
17
votes
1 answer

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…
15
votes
3 answers

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.00740ba1.tar.gz: No such file or directory WARNING:…
15
votes
3 answers

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] open() "/run/nginx/nginx.pid" failed (2: No such file…
paul23
  • 593
13
votes
2 answers

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 . Perhaps it was too logical because I…
Viktor
  • 131
11
votes
2 answers

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 Alpine is a small and efficient Linux distribution.…
11
votes
2 answers

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 bit behind the curve and demanding a single…
10
votes
2 answers

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: echo 'PATH="$PATH:my_path"' >> ~/.bash_profile I also know…
10
votes
5 answers

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 the Alpine:3.4 Docker image): / # apk update fetch…
9
votes
1 answer

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 option when the author of this article…
1
2 3 4 5 6 7 8