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
0 answers
35 views

Why linux-mint host is unable to ping a alpine vm?

I an alpine vm running inside virtualbox I have set up 2 network interfaces: eth0: a nat interface eth1: a host only one Guest network config (alpine VM) The /etc/network/interfaces have: auto lo ...
user avatar
1 vote
1 answer
29 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 ...
user avatar
0 votes
0 answers
46 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
95 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 ...
user avatar
0 votes
0 answers
253 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* ...
user avatar
  • 143
0 votes
0 answers
222 views

SASL PLAIN authentication failed: bad protocol / cancel

I try to configure postfix relay in kubernetes on Alpine using saslauthd. Dockerfile: FROM alpine:3.15 RUN apk update && \ apk add --no-cache postfix \ libsasl \ cyrus-sasl \ ...
user avatar
  • 1
0 votes
0 answers
98 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 ...
user avatar
  • 229
0 votes
1 answer
50 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 ...
user avatar
1 vote
0 answers
203 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 ...
user avatar
0 votes
2 answers
35 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 ...
user avatar
  • 1,385
2 votes
2 answers
441 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 [#] [#] ...
user avatar
  • 31
0 votes
0 answers
118 views

Alpine Linux AArch64 on Oracle Cloud Serial Issue

I am trying to install Alpine Linux on Oracle Cloud AArch64 VM. I had already installed bootloader (Grub, arm64-efi), kernel (5.10.75) and userspace on it. In order to debug boot issues, I setup the ...
user avatar
0 votes
1 answer
102 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 ...
user avatar
  • 466
0 votes
0 answers
104 views

Using FRRouting RPKI with ssh on Alpine Linux

I am trying to configure frrouting to use RPKI over ssh on Alpine Linux 3.14.2. After installing FRRouting using apk add frr frr-rpki (installs version 7.5.1) and adding rpki cache example.com 22 rtr-...
user avatar
2 votes
1 answer
179 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 ...
user avatar
  • 123
0 votes
1 answer
354 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"; } ...
user avatar
  • 1
0 votes
1 answer
203 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 ...
user avatar
  • 333
0 votes
1 answer
470 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 ...
user avatar
1 vote
1 answer
503 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 ...
user avatar
0 votes
1 answer
653 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 &...
user avatar
2 votes
4 answers
14k views

Git, WSL2, SSH: unexpected disconnect while reading sideband packet

While attempting to clone a remote Git repo using SSH I got the following error: git clone user@remote-repo:project.git . remote: Counting objects: 187444, done. remote: Compressing objects: 100% (...
user avatar
0 votes
1 answer
2k 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?
user avatar
1 vote
3 answers
1k 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 ...
user avatar
  • 3,557
0 votes
1 answer
653 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)
user avatar
0 votes
1 answer
885 views

Can't get unbound to work in docker container

It seems pretty simple to set up but I can't actually get it working.. Setup: $ docker run -it -p 53:5300/udp alpine /bin/sh $ apk add bash nano wget ca-certificates bind-tools unbound $ mkdir -p /...
user avatar
  • 31
0 votes
1 answer
927 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) ...
user avatar
  • 101
1 vote
1 answer
593 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/...
user avatar
  • 43
0 votes
2 answers
1k views

How to enable DNS over TCP for resolving names on linux

How do I configure linux in general to allow dns over tcp? We discovered today that several different linux servers we use are not able to resolve DNS names with many ip addresses in the response. ...
user avatar
0 votes
1 answer
4k 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 ...
user avatar
  • 183
0 votes
2 answers
866 views

K8s no dns resolution on all used test images

Hi community and K8s experts, I installed a clean K8s cluster based on virtual machines (Debian 10). After the installation and the integration into my landscape, I repaired in the first step the ...
user avatar
  • 23
3 votes
2 answers
2k 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 119
0 votes
1 answer
766 views

Lighttpd alpine container logging

The context is that I want to serve a static website inside a docker container so I can have some dedicated metrics, and I want the logs to use stdout/stderr. To do that I thought of using Lighttpd ...
user avatar
  • 101
0 votes
1 answer
294 views

Why does Alpine-based sshd shut down when first session ends?

I have a simple Docker container for a purposeful sshd server whose image derives from alpine:latest. It currently uses /usr/sbin/sshd -D -e -ddd as its entrypoint. When I ssh into it for running a ...
user avatar
  • 345
0 votes
2 answers
5k views

Configuring a PHP Apache Web Service Container at Build Time

I am building a PHP Apache Web Service Docker Container Prototype. The first and simplest way was to create a Container with the official Image published by WordPress with a simple Dockerfile like: ...
user avatar
1 vote
0 answers
116 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 ...
user avatar
  • 151
1 vote
2 answers
6k 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....
user avatar
1 vote
0 answers
126 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 ...
user avatar
  • 11
0 votes
1 answer
932 views

Google Cloud Compute Engine VMs with Alpine Linux

How to create GCE image with Alpine Linux that can be used to create GCE VMs?
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 121
1 vote
0 answers
364 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....
user avatar
  • 11
1 vote
1 answer
2k 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 ...
user avatar
7 votes
1 answer
3k 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 ...
user avatar
  • 171
1 vote
2 answers
392 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?...
user avatar
  • 123
1 vote
0 answers
80 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", ...
user avatar
0 votes
0 answers
52 views

I can't log into a mysql service which is built on Docker/Apine due to wrong password, what can I do?

I run a docker/alpine based mysql instance for many days, today I want to log into it, but I get the following error: bash-4.4# mysql -uroot -h 172.19.0.1 -p Enter password: ERROR 1045 (28000): ...
user avatar
  • 165
1 vote
2 answers
872 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 ...
user avatar
  • 241
1 vote
2 answers
3k 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 ...
user avatar
  • 205
1 vote
1 answer
1k 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 root@192.168.122.58 ...
user avatar