Questions tagged [alpine-linux]
Alpine Linux is a small, simple and secure Linux distribution based on musl libc and busybox. For questions related to the Alpine.js framework, use the tag [alpine.js].
1,773
questions
0
votes
2
answers
38
views
Update Node-js in ruby:2.7.1-alpine
I use ruby:2.7.1-alpine for my project
it installs Node version 12, I need version >=16 (I think 18 is desirable) to work with react.
how can I update the version in my Dockerfile ?
FROM ruby:2.7.1-...
1
vote
0
answers
27
views
Alpine image unable to resolve more than 63 IP addresses for domain (`java.net.InetAddress`)
I'm using:
Docker image: alpine:3.18.3,
Java: openjdk11-jre:
openjdk version "11.0.20" 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8-alpine-r0)
OpenJDK 64-Bit Server VM (build 11....
0
votes
2
answers
26
views
Install timescaledb-toolkit in alpine linux
I have a docker image that is generated using
https://github.com/timescale/timescaledb
The base OS of my docker image is Alpine.
Could not find any document that uses apk to install the toolkit
0
votes
1
answer
48
views
Install python packages in docker Alpine base image
I have requirement to install python packages from requirements.txt file in docker.
I am using "python:3.10.10-alpine" as my base image and installing the packages from requirements.txt file....
0
votes
1
answer
57
views
How to remove shell from docker image with healthcheck?
I have an NGINX docker image where I use healthcheck, like this:
HEALTHCHECK --interval=3s --timeout=1s \
CMD nc -vz -w1 127.0.0.1 8080 || exit 1
For security reasons, I also want to remove the shell,...
-1
votes
1
answer
27
views
Trouble Installing GCC on Debian Linux Distribution in Dockerfile
I'm currently encountering difficulties while attempting to install the GCC compiler in a Dockerfile specifically when targeting the Debian Linux distribution. Here's the section of my Dockerfile in ...
-1
votes
0
answers
17
views
I cant use more twinkle
When i using twinkle after few minute automatic close twinkle in my call please help me to solve this problem
No problem in few of first call after few call end and close automatic
I expect use of ...
0
votes
1
answer
55
views
Error loading shared library libssl.so.10 on Alpine docker
I am running aerospike client which requires library libssl.so.10. Its unable to find so. I am trying to run on this base docker image. Its base is alpine 3.11. It tried installing libressl but still ...
0
votes
0
answers
25
views
After updating grpc to 1.57.0, I am facing some compile error by building a python wheel on alpinelinux
I am using Alpine Linux to build gRPC Python wheel for our project. I just updated gRPC version from 1.54.2 to 1.57.0, then I see the following compile error:
gcc -fno-strict-overflow -Wsign-compare -...
1
vote
0
answers
26
views
How do I reproduce the caching issue mentioned in the Docker docs, but for alpine?
According to Docker docs, apt-get update and apt-get install should always be executed in the same RUN statement.
Is the same true for alpine?
I tried to reproduce the cache issue mentioned in the ...
-2
votes
0
answers
47
views
Errors building latest Rust on poorly supported hardware/firmware
I'm trying to build and install Rust on a recent iPhone using the iSH app, which runs "Alpine Linux v3.14 i686". Reason is because I'm trying to install a pip package which depends on a ...
0
votes
0
answers
40
views
How to solve problem using gcc -pg on alpine?
I have dockerfile:
FROM alpine:3.18.2
WORKDIR /app
RUN apk add gdb gcc musl-dev make binutils
COPY ./src /app
RUN gcc main.c -pg -o app
But compilation fails with an error:
/usr/lib/gcc/x86_64-alpine-...
0
votes
1
answer
110
views
Selenium 4.11.0 for Java crashes on container image amd64/eclipse-temurin:20-alpine
Running Selenium 4.11.0 for Java on a container with the following configuration crashes with the messages below.
FROM amd64/eclipse-temurin:20-alpine
RUN apk add chromium
RUN apk add chromium-...
0
votes
0
answers
18
views
Gem seven_zip_ruby fails compiling extensions on 3.0.2 alpine based image but not on 3.0.2 debian based one
I've encountered an error but I can't figure out how to fix it.
My application uses the seven_zip_ruby gem and is based on a ruby:3.0.2-alpine image. When I try to install the gem on a Debian image, ...
3
votes
3
answers
70
views
Trouble Executing AAPT Commands Inside Docker Container
I'm working on a Dockerfile where I'm trying to create a container environment to run Java code that requires both ADB and AAPT executables. While I've been able to successfully execute ADB commands, ...
0
votes
0
answers
50
views
alpine latest image gives /usr/local/bin/start-server: line 28: php-fpm7: not found error
I am working on moodle development with docker. Because of the latest verion of of moodle that has a version mismatch with php7, I need to use php8 or more.
In one part of the dockerfile, the code is:
...
-1
votes
1
answer
60
views
Why do I get "creation time is not available on this platform currently"? And what to do about it?
I am using this code to get the latest dir name:
use std::fs;
fn main() {
let subdirectories = fs::read_dir("/opt")
.unwrap()
.filter_map(Result::ok)
.filter(|...
1
vote
1
answer
145
views
Alpine 3.18 with cURL 8.2.1 not respecting /etc/hosts on .localhost domain extensions
Recently we have been updating our Docker images to the latest version of Alpine 3.18.
With this change we noticed that our application was not able to send HTTP requests using cURL to other ...
0
votes
0
answers
46
views
Remove shell access in a TomCat Image
I have build a custom TomCat image based on alpine:3.18.3.
Now, the issue I am having is that I cannot remove the shell access.
I have tried this:
RUN chsh -s /sbin/nologin root
and
RUN usermod -s /...
0
votes
2
answers
92
views
Different docker base when building and deploying
I'm using dockerized node, and in order to minimize the image as much as possible, I'm mixing between bookworm (Debian 12) and Alpine, in the following way:
FROM node:18.17.1-bookworm-slim AS build
...
2
votes
2
answers
91
views
Ada scale exceeds maximum value of 18
Dear Ada Enthusiasts,
type Long_Money_Type is delta 10.0**(-22) digits 38;
On The First Machine Ubuntu Linux 64 bit GNAT 8.3.0 this works.
On The Second Machine Alpine Linux 64 Bit GNAT 10.3.1 ...
3
votes
1
answer
131
views
Django - large file upload - moving file from temp folder to final destination fails
Stumbled upon this error when upgrading Python, Django and Alpine to latest versions... and it's a weird one.
The error occurs when I upload a file that is larger than FILE_UPLOAD_MAX_MEMORY_SIZE (set ...
0
votes
1
answer
104
views
Fail to decrypt data with openssl_pkcs7_decrypt() on PHP 8.1(openssl 3.0) previously encrypted with PHP 8.0 (openssl 1.1) with openssl_pkcs7_encrypt()
I have been running Alpine Linux image version 3.15 with PHP 8.0 with openssl 1.1.x version on my server.
Using this version I have encrypted some data using openssl_pkcs7_encrypt() function, stored ...
0
votes
3
answers
124
views
Better error message if dynamic linking fails
I get this error if dynamic linking fails:
/ # /manager
/bin/sh: /manager: not found
For the average user this is very confusing, because /manager exists.
Now, after searching for some hours, I found ...
0
votes
0
answers
65
views
Getting SSL issue when run docker-compose up command
Configuration of system:
Host OS: Windows 10
WSL 2 distro: Ubuntu 18.04
Docker desktop: 4.22.0
I have the project into WSL Ubuntu-18.04 distro at /home/git directory.
There is dockerfile (pasted ...
-1
votes
1
answer
38
views
How to run a downloaded executable on Alpine?
My script is quite basic and works on Debian:
apt update && apt install wget -y
cd /root
wget https://aka.ms/dotnet-counters/linux-x64 -O dotnet-counters
chmod a+x dotnet-counters
./dotnet-...
0
votes
0
answers
38
views
How to include dependencies in a python build wheel file
I have a python app that I am trying to package for postmarketos via abuild. I got the abuild to create the package, but I have a single dependency that I must install with pip because the apk ...
0
votes
6
answers
92
views
Can you express this bash calculation more simply and without using awk?
I'm looking for a simpler way to express this expression and if statement, without the repetition and also without using awk
stat="0.92" # hardcoded for demonstration purposes
...
0
votes
0
answers
114
views
How to use sudo like ubuntu in docker alpine linux
I'm building my own Linux docker image using Alpine Linux.
First, I wanted to improve the security of my Linux like Ubuntu by installing sudo.
RUN echo "root:$ROOT_PASSWORD" | chpasswd
RUN ...
0
votes
0
answers
29
views
raise PoetryException(f"Failed to install {path.as_posix()}") for scikit-learn
I want to use alpine image for python for my production, since it is free from security vulnerabilities.
I have a simple project 'my_project' It contains a simple helloWorld program, which is
# ...
2
votes
1
answer
37
views
How to prevent attach shell in docker node alpine image?
When I write docker exec -it mycontainer sh, I can connect docker container and see everything inside it. I want to prevent user from attaching shell. How can I do it?
My dockerfile:
FROM node:18.12-...
0
votes
1
answer
159
views
Dockerfile (FROM azul/zulu-openjdk-alpine:17-jre) chromedriver java
I have Dockerfile code, that works correct 3 months ago and now don't work :/
Do you know what is the problem ?
my code:
FROM azul/zulu-openjdk-alpine:17-jre
RUN addgroup -S spring && adduser ...
0
votes
2
answers
78
views
Container fails to start because "/var/run/secrets/kubernetes.io/serviceaccount" read-only file system: unknown
I have an EKS cluster. When I deploy my container it fails to start with the following message:
Error: failed to create containerd task: failed to create shim task: OCI runtime
create failed: runc ...
0
votes
0
answers
25
views
How to include desktop file and icon in a postmarketos package?
I am working on a GUI app for postmarket os that I wish to distribute via apk. I have successfully packaged the app using apkbuild, but after a day of searching, I cannot find any info on including a ...
0
votes
0
answers
26
views
how to install font IBM Plex Serif in alpine container
I want to install IBM Plex Serif in the alpine container, and I have read the official wiki https://wiki.alpinelinux.org/wiki/Fonts and did not found the command contains the IBM Plex Serif. is it ...
1
vote
3
answers
423
views
Adding openssh package to alpine docker
I have the following Dockerfile:
FROM alpine:latest
RUN apk update
RUN apk add --no-cache curl openssh sshpass rsync
#etc
And this docker-compose.yml:
[...]
services:
my-container:
build:
...
2
votes
1
answer
321
views
How to install torch in alpine
When I tried to install torch in alpine, it report there is no version distribution found for it.
FROM alpine:3.18
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf ...
0
votes
1
answer
90
views
How to build python package and migrate to alpine
Is there a way to write a dockerfile firstly build a local python package using docker container, and then migrate this building package file to alpine container?
2
votes
1
answer
139
views
Alpine 3.18 Docker image not respecting `sleep` shell command after a background command run with &
I've been using a simple script with a while loop inside it as the entry point to a Docker container to run a command every minute. A sort of simple cronjob so to speak. The while loop looks like this:...
0
votes
0
answers
149
views
"DNS lookup error" while installing git to Docker Alpine Image
I'm trying to build a Docker image using the official golang:1.19-alpine image and adding git in order to pull a private project.
Dockerfile
FROM golang:1.19-alpine
RUN apk update
RUN apk add --no-...
1
vote
1
answer
65
views
Docker execution fails with "command in CMD/ENTRYPOINT not found"
I'm trying to make a production build of my Golang API with Docker container. It worked in Development (with Air), but keeps telling me, the executable was not found in production one.
I've tested it ...
0
votes
0
answers
45
views
Django disable database ssl using python-alpine docker image
I'm trying to create a Django app using docker. Because of some problem, I want to connect with database without using ssl/tls.
When I use local environment, or docker image ubuntu, it work fine when ...
2
votes
1
answer
166
views
Gpg hangs when listing keys (docker install)
I try to setup a docker image to tar and encrypt files.
My problem is when I try to do it with a Dockerfile, when I gpg --list-keys, shell hangs and nothing happens.
There is no error message. I see ...
0
votes
0
answers
45
views
Migrating from OpenSSL1 to OpenSSL3 on Alpine
Started to migrate from OpenSSL1 to OpenSSL3+fips in Alpine3.18
The following command is used to signed certificates, it works on OpenSSL1 however in OpenSSL3 the Certificate Version field is set to 1 ...
0
votes
0
answers
36
views
Docker alpine tunnel through public and private server to DB?
I'm trying, based on this Dockefile https://github.com/jenkinsci/docker-inbound-agent/, to create a possibility for an ssh tunnel through public ssh server to use him as a connection to the private ...
0
votes
1
answer
57
views
Alpine Pipes Buffering
I'm not really sure even what is the subject, initially I was struggling with grep with a suggestion the it is a root cause yet seems it is something related to pipes buffering or something
On Alpine ...
4
votes
1
answer
866
views
Is it possible to add pgvector extension on top of postgres:15.3-alpine images
I'm trying to dockerize pg-vector and I found this Dockerfile from the official repository.
https://github.com/pgvector/pgvector/blob/master/Dockerfile#L2C1-L3C1
The Dockerfile currently uses postgres ...
0
votes
0
answers
96
views
Alpine APK: Unable to use repository tags when creating a virtual dependency
Due to rather minimalistic wiki/docs for Alpine Package Keeper, I have failed to determine why it appears to refuse repository tags when specifying packages part of a virtual dependency.
The question ...
0
votes
1
answer
172
views
unable to clone a repo inside a docker container
I was creating my own development env with docker
this is my docker file
FROM alpine:latest
WORKDIR /app
RUN apk update
RUN apk upgrade
RUN reboot
RUN apk add --no-cache make
RUN apk add
RUN git ...
0
votes
0
answers
62
views
Setfacl is being ignored in a docker container
I have an ssh server where I manage project access using ACL. I have a folder name testsuite.git with this ACL:
$ getfacl testsuite.git/
# file: testsuite.git/
# owner: root
# group: root
user::rw-
...