Questions tagged [alpine]

Alpine Linux is a Linux distribution that prides itself on being small, simple, and secure. Alpine Linux is a common choice for running inside Docker containers.

Filter by
Sorted by
Tagged with
19 votes
4 answers
6k views

What does Alpine's APK stands for?

Alpine Linux uses apk as its package manager, and its installer files are .apk... Just like Android files are. Are those related in any way? If yes, how? If not, what does APK stands for (Alpine ...
igorsantos07's user avatar
14 votes
2 answers
47k views

Installing openjdk 11 on alpine:3.9

I'm trying to build an alpine docker image with openjdk 11. To do so, I'm starting an alpine container: docker run -it alpine:3.9 /bin/sh And running the following: export JAVA_HOME=/opt/openjdk-11 ...
Thiago's user avatar
  • 287
8 votes
1 answer
21k views

Alpine shell can't find file in docker

I've set up a simple docker container with Alpine and a tool called bowtie2. When I try to run bowtie2-align-s, I get this error: sh: ./bowtie2-align-s: not found However, ls tells me that the file ...
Don Kirkby's user avatar
  • 1,404
8 votes
3 answers
4k views

Alpine Linux timezone doesn't stick if tzdata is removed

This used to work to set the timezone. I have a container on Alpine 3.9.4 where it worked: RUN apk add --no-cache tzdata ENV TZ America/Chicago RUN apk del tzdata I'm now creating a Docker container ...
mbomb007's user avatar
  • 185
6 votes
2 answers
4k views

Alpine Linux apk: List out directly installed packages by `apk add`?

Is it possible to list packages directly installed by apk add? e.g. apk add docker, apk add lm-sensors file, etc. Running apk info lists ALL installed packages (including dependencies of installed ...
Jonathan Dumaine's user avatar
5 votes
3 answers
4k views

Alpine linux on AWS / EC2 : how to login with my public key?

I'm trying to install Alpine Linux (v.3.6) on Amazon AWS EC2 via a standard community AMI. I provided my valid ssh key, which does work with all other instances (Amazon Linux) in the same VPC. However,...
whip's user avatar
  • 53
5 votes
1 answer
9k views

Converting a systemd service to OpenRC (Alpine Linux)

So I'm currently merging an XMPP server with a Signal gateway for efficiency (running each service in a separate VM eats resources like nobody's business) and I need to convert the service script for ...
Darkness's user avatar
5 votes
3 answers
6k views

gcsfuse on Alpine Docker

I try to use gcsfuse in order to store application source code on a GCP bucket, here's my Dockerfile: ARG VERSION FROM golang:1.12.5-alpine3.9 as gcsfuse-builder ENV GOPATH /go RUN apk --update ...
Guikingone's user avatar
5 votes
1 answer
2k views

Change Alpine Linux default shell

Alpine defaults to ash as the login shell, I want to change it to bash. What I did so far: installed bash by sudo apk add bash installed shadow by sudo apk add shadow I changed my user's login shell ...
elsni's user avatar
  • 445
3 votes
2 answers
11k views

SNMP: hrSystemUptime.0: Unknown Object Identifier (Sub-id not found: (top) -> hrSystemUptime)

I get the error in the title when I issue the following command. $ snmpget -v3 -u edgeos-snmpd-user -l authPriv -a SHA -x AES -A authPhrase -X privPhrase 192.168.x.x hrSystemUptime.0 hrSystemUptime....
Stephen Rasku's user avatar
3 votes
1 answer
9k views

Alpine ping: operation not permitted

I'm using Alpine (which uses busybox), and trying to get ping to work. First I tried installing iputils per https://serverfault.com/a/1001312 . No dice. Then I found something that said I need to set ...
Eddified's user avatar
  • 213
3 votes
1 answer
6k views

Unable to ssh into running dropbear sshd. "Bad password attempt" ...But password is correct

For some reason, a running dropbear sshd i've got going in a Docker container is telling me Bad password attempt , even though i've doublechecked multiple times that both username and password is 100% ...
DhP's user avatar
  • 161
3 votes
1 answer
1k views

openssh hangs with 100% cpu when compression is used

The ansible openssh server hangs with 100% cpu, when compression is requested (ssh -C) ssh -vvv -C root@host [...] debug3: send packet: type 50 debug3: receive packet: type 52 debug1: Enabling ...
allo's user avatar
  • 1,683
3 votes
0 answers
2k views

Docker compose permission denied when PHP-FPM trying to create directory

I have this docker-compose I'm experimenting with. Im using fastCGI from Nginx to run the script. The docker-compose.yml: version: "3" services: psqldb: build: context: ....
sjiamnocna's user avatar
3 votes
0 answers
1k views

How does a unix socket shared through a Docker volume work compared to TCP?

I'm wondering how Docker manages a unix socket when it's shared across containers and how it affects the performance compared to just using TCP. What I'm trying to accomplish is setting up docker-...
Josue Alexander Ibarra's user avatar
3 votes
0 answers
7k views

Installing Chromium on Alpine Linux, strange error

I have a Dockerfile setup to install Alpine and Chromium. A few weeks ago the package was working properly and I was able to build with it properly however recently I'm having trouble with the build ...
ddibiase's user avatar
  • 133
3 votes
0 answers
561 views

Alpine Linux - root mounted as ro iso9660 filesystem how can I remount as rw overlay? [closed]

The root filesystem is an iso9660 mount. / # mount |grep iso /dev/sr0 on / type iso9660 (ro,relatime) Is there a way to remount root, using aufs in order that I can install packages, compile code, ...
Bryan Hunt's user avatar
2 votes
3 answers
5k views

Installing Shapely on Alpine docker

I am trying to move my project to docker and I've been using the alpine variant. This is a django project with postgres database Here is how i install the dependencies: ... ADD ./requirements.txt /...
Amir Heshmati's user avatar
2 votes
1 answer
359 views

tail command retry flag not working with wildcards?

I want to tail a bunch of unknown directories names containing a particular non-existant file, e.g.: tail -F /tmp/*/app.log However that does not work as intended with the wildcard: if I create a file ...
iomv's user avatar
  • 123
2 votes
2 answers
2k views

Wireguard on Alpine: automatically mount wg0 after boot

I have a wireguard installed on a Alpine server. It's working, but when I reboot the server, I'm obliged to manually execute wg-quick up wg0 wireguard:~# wg show wireguard:~# wg-quick up wg0 [#] [#] ...
cyanat's user avatar
  • 31
2 votes
1 answer
1k views

Alpine Linux: fatal: privsep_preauth: preauth child terminated by signal 31

I have some containers with Alpine Linux. Yesterday I updated two of them from v3.8 to v3.10. OpenSSH server was upgraded from 7.7_p1-r4 to 8.0_p1-r0. After that, the client is unable to login. Note:...
lepe's user avatar
  • 469
2 votes
1 answer
5k views

No php errors in Alpine/Nginx/PHP 7.1.2 with docker

I'm using Alpine / Nginx / PHP-FPM 7.1.2. I can't get PHP error's to display or output to the error.log in my Nginx server block. The access.log seems to work just fine. I've got this at the bottom ...
Asa Carter's user avatar
2 votes
0 answers
434 views

Jenkins cannot run ssh-agent, but local container can

I'm trying to configure an SSH key on my Jenkins instance with the SSH Agent Plugin. Jenkins is using Kubernetes containers as workers. My worker container image is alpine based, and just installs ...
jackwise's user avatar
  • 259
2 votes
1 answer
4k views

Nginx letsencrypt certificate permission denied

Context I'm running an nginx instance in an alpine docker container (nginx:stable-alpine). The goal is to use nginx as a reverse proxy for one (or multiple) docker containers which only have HTTP and ...
h345k34cr's user avatar
  • 121
2 votes
1 answer
441 views

Arbitrary vlan interface name - undocumented configuration?

Today i was playing around with ethernet adapters and vlans in Alpine Linux. I tried to give the interfaces arbitrary names. After looking at the source i had the following example working Ethernet ...
eKKiM's user avatar
  • 1,539
2 votes
0 answers
1k views

Docker storage re-mounted in read-only mode when container is generating a lot of large file(20G+)

I am getting stuck with an issue for a couple of days, and hope someone here could help or give some hints. So here is the issue: when I am running some docker images which performs large I/O ...
UTS-AnQ's user avatar
  • 21
2 votes
0 answers
2k views

Using PhangomJS in Docker Alpine

I am trying to use Jenkins as a docker container. For this purpose, I use the official docker image. As we have some integrations tests based on Selenium (Vaadin Workbench really), I need to run ...
King Midas's user avatar
1 vote
2 answers
5k views

UsePAM not supported anymore

Running on an alpine docker image an SSH server. Starting the server I get the message: /etc/ssh/sshd_config line 24: Unsupported option UsePAM AFAIK UsePAM option has been supported for many years ...
Mazzy's user avatar
  • 237
1 vote
2 answers
4k views

crond: can't set groups: Operation not permitted

This morning I upgraded my PHP version to 7.1 and am seeing an issue when cron tries to run php /var/www/html/artisan schedule:run (a simple PHP command) I see the output: 3/3/2017 10:39:00 AMcrond: ...
Ben's user avatar
  • 3,850
1 vote
3 answers
3k views

Postfix + sasldb issue (solved as of Mar 2021)

PS(SOLVED: Solution for Alpine Linux as of Mar 2021, the fix in cyrus-sasl 2.1.27-r12 is in edge branch. 3.13 only has cyrus-sasl 2.1.27-r10. PS: I know there are similar posts but they are very ...
John Siu's user avatar
  • 3,697
1 vote
2 answers
685 views

touch -d '20 seconds ago' not working in alpine

I'm trying to use touch -d '20 seconds ago' file.txt Which works in Ubuntu, but not in Alpine. Anybody knows if there's an additional package that does this, or is it not supported by Alpine itself?...
aclowkay's user avatar
  • 133
1 vote
1 answer
3k views

Run script after booting Alpine netboot

I have download alpine netboot distribution from this url: https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-netboot-3.16.1-x86.tar.gz I have run a virtual machine with qemu this way: ...
Bob5421's user avatar
  • 339
1 vote
1 answer
156 views

Segmentation fault of Bacula on Apline Linux

I'm trying to run Bacula (backup app) on Apline Linux and get segmentation fault when connecting thru bconsole to bacula-dir. I was tried working configuration from another non-Alpine server, clean ...
Vladimir Martsul's user avatar
1 vote
2 answers
1k views

How to get information about security updates for Alpine Linux?

I would like to get information that important package updates occured (e.g. connected with security updates) - so that I know, that I need to rebuild my Alpine-based images with apps. It could be ...
keypress's user avatar
  • 251
1 vote
1 answer
2k views

Filezilla fail to connect Dropbear SSH server _ unexpected end-of-file

I install dropbear SSH server in Alpine OS dropbear config : DROPBEAR_OPTS=" -p 22 -K 9" ( p = port , K = keep-alive in seconds) now I can connect to SSH terminal in KVM ssh [email protected] ...
user avatar
1 vote
1 answer
2k views

Can't turn SSL on a docker's nginx container

I'm new to docker and try to build an image based on Alpine to take care of my websites with HTTPS connexions. Currently i'm at the step to make it work from the container so i'm not finished yet with ...
idiocrate's user avatar
1 vote
1 answer
3k views

How to restart rsyslog on alpine?

In my alpine 3.1..5 linux docker container, I installed rsyslog as: # apk add --no-cache rsyslog I am running rsyslogd as: # rm -f /var/run/rsyslogd.pid # rsyslogd How do I restart rsyslogd ...
user674669's user avatar
1 vote
1 answer
2k views

Expose Docker API over TCP on Alpine Linux using OpenRC

I have searched everywhere but just can't seem to find the answer. I need to expose the Docker API over TCP on Alpine Linux using OpenRC. I know how to do it on Ubuntu with systemd: create /etc/...
Liam Wells's user avatar
1 vote
0 answers
61 views

Alpine: Boot via iPXE and execute a script: can't stat "Filesystem": No such file or directory

I want to execute Alpine Linux and execute a script. alpine.ipxe #!ipxe # Unfortunately "https" will fail with current iPXE with "operation not permitted" # https://ipxe.org/err/...
guettli's user avatar
  • 3,703
1 vote
1 answer
226 views

Alpine Linux 3.17 does not mount CephFS during boot

I have configured a CephFS fuse mount in fstab on my Alpine Linux 3.17 as follows: none /data fuse.ceph ceph.id=filer,ceph.client_mds_namespace=files,_netdev 0 0 When I issue a mount -a the filesystem ...
roehrijn's user avatar
  • 223
1 vote
2 answers
863 views

Alpine in a docker container accessible from the docker host via ssh

A little preamble: some CICD integration tests need to be able to connect via ssh to a user with a suite of test files in its home directory. This is the Dockerfile I wrote to create that: FROM alpine:...
Peter Wone's user avatar
1 vote
0 answers
1k views

apk command to find which package installs a program? [Alpine Linux]

I want to install program /usr/bin/time using Alpine Linux package manager apk (time is a program runtime measurement tool). But I don't know which package to install. apk search time reports 147 ...
JamesThomasMoon's user avatar
1 vote
0 answers
716 views

How to prepare custom Alpine Linux ISO for unattended installation

I am evaluating Alpine Linux to replace CentOS, Currently we prepare Custom ISO with kickstart for unattended installations. In my case from unattended I mean that deployer just put USB and after that ...
ImranRazaKhan's user avatar
1 vote
1 answer
1k views

What runlevel should ufw firewall start at in Alpine Linux?

I am using ufw on Alpine linux. I have configured it in a pretty standard way: apk add --no-cache ufw ufw allow ssh ufw allow http ufw allow https ufw limit ssh ufw enable rc-update add ufw default ...
markson edwardson's user avatar
1 vote
1 answer
1k views

Docker (alpine) file not found when CMD

So this is my Dockerfile: FROM alpine RUN apk add --update --upgrade --no-cache mysql mysql-client RUN rm -rf /etc/my.cnf /etc/mysql/* /etc/mysql.d/ && \ mkdir -p /var/lib/mysql /var/run/...
nail0x's user avatar
  • 63
1 vote
2 answers
2k views

Alpine Linux is not sending hostname to dhcp server

When alpine linux asks for ipv4 address from dhcp server, it is not sending hostname to dhcp server. So I cant access by server's hostname in LAN. Here is my setup I am using Alpine Linux 3.12 on my ...
ozkolonur's user avatar
  • 129
1 vote
0 answers
259 views

Script command on alpine

I want to preserve colors of docker exec command. The only way I found is to use script command like so docker exec <container_name> script -q -c "./spiral migrate:status" /dev/null The ...
ogbofjnr's user avatar
  • 183
1 vote
0 answers
213 views

docker: logrotate is failing with missing directories in pattern

I'm using logrotate in a docker container. I'm injecting a bind volume into the container where logs should be rotated. The folder structure is more or less the same, this path /srv/apps is injected ...
Marco's user avatar
  • 11
1 vote
0 answers
540 views

GELF json logs stop arriving on graylog after some time from nginx proxy in docker

Hmm..where to start...i've got an application stack (running in docker swarm), with nginx as proxy in front. Ive got json-formatted logs, being sent to graylog via gelf. Container system is alpine 3....
zaw's user avatar
  • 11
1 vote
0 answers
169 views

AWALL - Alpine firewall, rule that accept traffic from certain IP

I need a rule that permits a specific traffic from determinate IP. I tried this, but it doesn't work. { "src": ["$FDFARM", "$FARM"], "in": "internet", "out": "_fw", "service": "APIDOCKER", ...
Francesco D'Agostino's user avatar