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

"doas" not working in alpine 3.18 container

I can't get the doas command to work in an alpine 3.18 based container: ~$ cat /etc/doas.conf permit nopass :users as root cmd /test.sh ~$ id uid=1000(me) gid=1000(me) groups=100(users),1000(me) ~$ ...
0 votes
1 answer
88 views

SSHD: no matching host key type found. Their offer: [email protected]

In short, I have a pipeline in GitLab CI that runs on an alpine:latest image. In the pipeline I run to install ssh: apk update && apk upgrade && apk add --update openssh And then I ...
1 vote
4 answers
4k 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 ...
1 vote
0 answers
99 views

Is there a way to disable all internet access while having ssh open on a docker container

The end goal is very simple. Open up SSH port 22, but disable internet: I can ssh into the docker container, but I can't do anything that requires an internet connection (download packages, curls ...
5 votes
1 answer
4k 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 ...
-1 votes
1 answer
99 views

Why sendemail is not working in k8s container?

my smtp server is in another server, trying to send the mails from k8s container but it says ERROR: mailscript.sh: line 56: sendemail: command not found while running the script from smtp, it will ...
2 votes
1 answer
5k 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 ...
1 vote
0 answers
216 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/...
0 votes
0 answers
121 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 ...
0 votes
0 answers
166 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 ...
0 votes
0 answers
1k 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 "...
0 votes
0 answers
382 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: ...
0 votes
0 answers
374 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 ...
0 votes
1 answer
414 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): ...
8 votes
3 answers
5k 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 ...
0 votes
1 answer
95 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 ...
1 vote
1 answer
377 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 ...
0 votes
1 answer
613 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 ...
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 ...
0 votes
1 answer
1k 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 ...
14 votes
2 answers
49k 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 ...
0 votes
1 answer
869 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 ...
0 votes
1 answer
769 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....
0 votes
1 answer
460 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 ...
0 votes
1 answer
2k 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* ...
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 ...
-1 votes
2 answers
14k 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 ...
1 vote
1 answer
1k 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: $ ...
0 votes
0 answers
332 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:...
0 votes
1 answer
854 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 ...
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 ...
0 votes
1 answer
4k 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 ...
0 votes
1 answer
919 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 ...
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 ...
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: ....
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: ...
0 votes
0 answers
680 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 ...
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 ...
1 vote
1 answer
4k 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 ...
1 vote
2 answers
1k 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:...
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 &...
1 vote
1 answer
188 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 ...
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 ...
0 votes
1 answer
178 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 ...
0 votes
1 answer
304 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 ...
1 vote
0 answers
816 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 ...
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,...
2 votes
0 answers
558 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 ...
0 votes
1 answer
261 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 ...
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 ...