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
1 vote
0 answers
58 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,683
0 votes
0 answers
35 views

UFW IP does not block nginx

I have the following problem. I have an Alpine Linux system, not in a container. An Nginx web server and the UFW firewall run on it. If an Error 400 or 404 is triggered, UFW blocks the IP. This works ...
CodierGott's user avatar
0 votes
0 answers
37 views

Alpine docker autofs install for dynamic dotnet cifs access

I am trying to access a network share with specific credentials. It's to be used from a dotnet application that I am running in docker. My research conclusion is that autofs is the best way to do ...
Tewr's user avatar
  • 123
0 votes
0 answers
348 views

Why is my `debian-slim` container image much larger than when using `alpine`?

I'd like to use debian:bookworm as my base container image. But I find that the container image grows (according to dive) very quickly as I install applications using apt-get. Disclaimer: These "...
xaa29221's user avatar
0 votes
0 answers
176 views

Portainer can't access docker socket without chmod 666 workaround

Environment: Alpine Linux (3.18) I've got a portainer docker container that can't access the docker socket. I've added my user to the docker group. I make the container with the following command: ...
m4p85r's user avatar
  • 315
0 votes
0 answers
155 views

Can't see udp packets with nc command, works with tcpdump

I'm trying to capture UDP data using the nc (netcat) command but it doesn't output anything. What options/parameters do I need to pass to the nc command to get the output? tcpdump does show the UDP ...
Martijn de Munnik's user avatar
0 votes
1 answer
223 views

how to install Bazel into Alpine container using apk

I want to install Bazel (version 5.1.1) into an Alpine container using apk. I tried this command and got this error: % apk add bazel=5.1.1 ERROR: unable to select packages: bazel (no such package): ...
Mike W's user avatar
  • 125
1 vote
1 answer
221 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
0 votes
1 answer
375 views

How to perform security updates of Docker Alpine

I stumbled upon a tricky situation: I read on the Docker Alpine main page that the image is getting updated every month for minor versions/security fixes. Packages with CVE are not updated for the ...
Kaymaz's user avatar
  • 243
0 votes
1 answer
815 views

Enable TLSv1.1 on httpd 2.4.56 running on Docker

I am trying to modernize the infrastructure of a HTTP web service. I want to update the web server to something more recent and secure, but I have to maintain compatibility with some legacy devices in ...
Marco Benetti'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
0 votes
1 answer
661 views

Alpine Linux on Docker: is it possible to configure the thread stack size?

I notice that an application (written in C++) is crashing on Alpine, with a segmentation fault. After some investigation, it looks like the problem is the small thread stack size of Alpine. The same ...
Starnuto di topo's user avatar
0 votes
1 answer
375 views

What (low priority thread) is causing 100% CPU usage in my node alpine container?

I have a node alpine docker container (hosted on Azure) which periodically reaches 100% CPU usage. However, running the top or htop command shows no threads having high CPU usage. How do I find out ...
zapdev's user avatar
  • 1
0 votes
0 answers
227 views

Can't get PyGObject running in my alpine docker image

I can't get the Python:Alpine Docker image to install all my required PIP libraries. Unfortunately installing PyGObject is failing all the time and I can't get it running. Building wheel for ...
David's user avatar
  • 159
0 votes
1 answer
596 views

Alpine container no longer has nginx listening to 80, 443, but why?

This is more of a Docker question that anything else, I think, but allow me to describe the situation first. We upgraded the base image to one of our containers from php:7.3.28-fpm-alpine3.13 to php:7....
AckThpfft's user avatar
-1 votes
2 answers
10k views

Does Alpine Linux Docker Image contain OpenSSL

Does the official alpine docker image bundle OpenSSL. I created a new container locally and I can't find the openssl command. Is there an official doco with everything that's installed by default? I ...
Nikolay's user avatar
  • 107
0 votes
0 answers
244 views

nginx readonly container complains about /var/lib/nginx/off

I am trying to run a nginx container in readonly rootfs but when nginx tries to start it complains about : [emerg] 10#10: open() "/var/lib/nginx/off" failed (30: Read-only file system) nginx:...
Jose's user avatar
  • 21
0 votes
1 answer
998 views

Use pam_exec to run a script on an ssh login event

I'm trying out linuxserver.io openssh-server. Its a lightweight openssh image and makes it easy to configure with public key and user name. If I run it, ssh with public key auth, works as expected: $ ...
doughgle's user avatar
0 votes
1 answer
628 views

Unable to access server using ssh after setting a static ip in alpine Linux

I am trying to configure a new Alpine server, and I have some basic knowledge of networking & Linux only. Everything works seamlessly if I use the default configs with DHCP, but breaks when I try ...
Samdeesh's user avatar
  • 101
0 votes
2 answers
1k views

Shell alias file not working after copying it into container, works after source command?

I'm copying aliases.sh into an alpine-based container: FROM php:8.1-fpm-alpine AS php COPY .docker/aliases.sh /etc/profile.d/ CMD ["php-fpm"] When I log into the shell, my aliases won't ...
gremo's user avatar
  • 349
0 votes
1 answer
767 views

Unable to install oh-my-zsh package on alpine docker container

Running apk add oh-my-zsh on a docker container I get: / # apk add oh-my-zsh ERROR: unable to select packages: oh-my-zsh (no such package): required by: world[oh-my-zsh] The package seems to ...
StevieD's user avatar
  • 534
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
0 votes
1 answer
3k views

Configure persistent wireguard network interface

I have configured Wireguard VPN on Alpine Linux 3.16.2. Manual server and client configuration works fine. uname -mrs # Linux 5.15.60-0-virt aarch64 ip link add dev wg0 type wireguard ip address add ...
Alexander Borochkin's user avatar
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
0 votes
0 answers
570 views

Share a host folder to an alpine image running in qemu

I have try to run an alpine Linux in an emulated environment this way: $ wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-netboot-3.16.1-x86.tar.gz I have untar the archive and ...
Bob5421's user avatar
  • 339
0 votes
0 answers
2k views

How can I add host.docker.internal to the trusted root certificate in an Alpine Linux container?

I'm using Alpine Linux via Docker. I want to make an HTTPS connection to host.docker.internal. There is a service on the host machine that can be reached via localhost:8443 on the host machine. I want ...
Spencer Williams's user avatar
0 votes
1 answer
76 views

Configure Website Names on LLighttpd Alpine Linux

It has been a long time since I have done any hosting on Linux, and it that was on CentOS and Apache. I am working on creating some sites on an Alpine server running Lighttpd. Reviewing the config ...
Andrew's user avatar
  • 209
1 vote
2 answers
849 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
1 answer
152 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
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
0 votes
1 answer
144 views

EBS root volume being mounted on /media/xvda instead of / (Alpine Linux)

I followed these instructions to install Alpine Linux on EC2. Everything went well and I was able to create an AMI from which I can launch new instances. My instance is supposed to act like a NAT ...
Helder Sérvio's user avatar
0 votes
1 answer
282 views

SSH server refuses multiple connections from same client

I have a simple openssh server running in a Alpine Linux 3.15 Docker container, and a client, also running on another Docker container (same version of Alpine of the server) that runs a X server with ...
henriquehbr's user avatar
0 votes
1 answer
1k views

How to install cgroup tools on Alpine Linux

I need to install the control group tools on Alpine Linux; on some distros there is a cgroup-tools package or equivalent, but not on Alpine Linux. I have looked for the a package containing any cg* ...
hstr's user avatar
  • 145
2 votes
0 answers
431 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
0 votes
1 answer
220 views

PAM permit works only when dummy suffix is added

I am trying to use PAM to authenticate OpenVPN against 2FA (not important info). Here is my PAM configuration: account required pam_permit.so auth required pam_google_authenticator.so ...
Mohammed Noureldin's user avatar
1 vote
0 answers
714 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
0 votes
2 answers
82 views

Permissions of /dev/null wrong in KVM guest

My host node is RHEL7 running KVM from the 'updates' repo. On the host node, the permissions for /dev/null are: crw-rw-rw-. 1 root root 1, 3 Dec 18 04:45 /dev/null In an Alpine KVM guest (5.14, but ...
tater's user avatar
  • 1,465
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
0 votes
1 answer
549 views

PHP5 to PHP7 unexpected increase in memory usage inside container

Last week we updated several wordpress sites which are running Alpine Linux as containers inside a host (Ubuntu 20.04) through LXD. A summary of the update is as follows: Alpine Linux v3.8 -> 3.14 ...
lepe's user avatar
  • 469
2 votes
1 answer
357 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
0 votes
1 answer
718 views

how to allow proxy pass with same location, with multiple context path

server { listen 80; server_name example.com www.example.com; location /consol { if ($request_method !~ ^(GET|POST)$) { return 405 "Not allowed"; } ...
deepak's user avatar
  • 1
0 votes
1 answer
744 views

QEMU VM with tap interface sees all packages coming from hypervisor instead of real source IP

I have set up a very simple Hypervisor using Alpine Linux and my VM sees all traffic coming from the IP of the hypervisor. Which also means if fail2ban tries to block attacks, it always blocks the ...
Christian's user avatar
  • 333
0 votes
1 answer
2k views

RTNETLINK answers: File exists in alpine router

I already know that this ask may already be made here but i couldnt solve this there, idk if i made bad or something, so im asking with my own case, sorry if my english is bad but here it is this is ...
Sergio D'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
0 votes
1 answer
1k views

Server DHCPv6 with Linux Alpine

I want create a server dhcp6 with alpine I'm using Kea-dhcp6. The my file config this is: { # DHCPv6 configuration starts on the next line "Dhcp6": { # First we set up global values &...
Seguret's user avatar
0 votes
1 answer
3k views

Is Alpine Linux a bad choice for a server?

I've been thinking of migrating one of my servers from Ubuntu to Alpine to host my web app. I came to know Alpine because of Docker. Is using Alpine as a server OS safe? Has anyone ever tried this?
theo's user avatar
  • 3
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
0 votes
1 answer
2k views

Why does "last" fail on Alpine with "last couldn't open file '/dev/null/wtmp' "?

Why is the last command failing on my fresh install of Alpine 3.12? $ last couldn't open file '/dev/null/wtmp': Not a directory wtmp begins Thu Jan 1 00:00 (on a Linode server if that matters)
Rob Bednark's user avatar
0 votes
1 answer
3k views

Alpine setup on virtual machine UEFI does not boot

I am trying to setup Alpine linux on a VM (Proxmox) to replicate the layout of physical hardware (raspberry pi). The real layout is a raspberry pi 3, installed as "data" mode (based on wiki) ...
Dede's user avatar
  • 101
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