Questions tagged [alpine]

For DevOps questions related to Alpine Linux or Alpine-based containers.

Linux Distribution

From the https://www.alpinelinux.org/about/ page:

ABOUT

Alpine Linux is an independent, non-commercial, general purpose Linux distribution designed for power users who appreciate security, simplicity and resource efficiency.

SMALL

Alpine Linux is built around musl libc and busybox. This makes it smaller and more resource efficient than traditional GNU/Linux distributions. A container requires no more than 8 MB and a minimal installation to disk requires around 130 MB of storage. Not only do you get a fully-fledged Linux environment but a large selection of packages from the repository.

Binary packages are thinned out and split, giving you even more control over what you install, which in turn keeps your environment as small and efficient as possible.

SIMPLE

Alpine Linux is a very simple distribution that will try to stay out of your way. It uses its own package manager called apk, the OpenRC init system, script driven set-ups and that’s it! This provides you with a simple, crystal-clear Linux environment without all the noise. You can then add on top of that just the packages you need for your project, so whether it’s building a home PVR, or an iSCSI storage controller, a wafer-thin mail server container, or a rock-solid embedded switch, nothing else will get in the way.

SECURE

Alpine Linux was designed with security in mind. The kernel is patched with an unofficial port of grsecurity/PaX, and all userland binaries are compiled as Position Independent Executables (PIE) with stack smashing protection. These proactive security features prevent exploitation of entire classes of zero-day and other vulnerabilities.

Alpine in the Docker Hub Library

Alpine is used by a number of official images in the Docker library, using the official Alpine base image.

What is Alpine Linux?

Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Docker images.

12 questions
5
votes
4 answers

ERROR: Unable to read database state: No such file or directory

I was trying to install Photon by pulling the docker image. But when I run docker build -t photon . I am getting the below error. ---> Running in 3076fb42ef8b ERROR: Unable to read database state: No such file or directory ERROR: Failed to open apk…
5
votes
2 answers

Installing azcopy in Gitlab Runner (Alpine Linux)

How can I install azcopy and use it in my gitlab runner CI/CD script? First I have two scripts that download the tar file and extract it. wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux tar -xf azcopy.tar.gz However, if I try running…
Brad
  • 179
  • 1
  • 3
2
votes
1 answer

How do I bootstrap an alpine image to work with a private repo proxy behind TLS?

I am in a corporate environment behind a gateway that does DPI and often replaces the TLS certificate of most online resources with our corporate certificate. Many of our developers use images based on alpine linux to do their work and at peak times…
LLlAMnYP
  • 285
  • 1
  • 9
1
vote
1 answer

Error while trying to run docker redis image on Alpine Linux 3.7.0

Specifications Microsoft Windows [Version 10.0.14393] VirtualBox 5.2.8 Alpine Linux Extended 3.7.0 Docker Info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.10.0-ce Storage Driver: overlay2 Backing Filesystem:…
1
vote
1 answer

Creating a custom alpine iso - including open-vm-tools

I want to create a custom Alpine Linux image. I want to take the Virtual ISO version (https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-virt-3.20.1-x86_64.iso) extend it with some packages and do some configuration stuff. Then I…
Bernte
  • 11
  • 3
1
vote
1 answer

Can you use the Secure File API if the container doesn't have bash? Like Alpine?

GitLab offers a Project-level Secure Files, the API has you add this to your .gitlab-ci.yml, test: variables: SECURE_FILES_DOWNLOAD_PATH: './where/files/should/go/' script: - curl --silent…
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85
1
vote
1 answer

Why does running echo with exec form in a Dockerfile create /etc/resolv.conf?

I was trying to build a Docker image from a Dockerfile and I had a line in there which reads: RUN ["echo", "'anything'", ">", "./a_file"] This didn't work, and I eventually had to use: RUN ["sh", "-c", "echo 'anything' > ./a_file"] But before I…
dayuloli
  • 141
  • 2
0
votes
1 answer

How do -dev apk packages differ on Alpine for the purposes of creating docker images?

I recently started a new position at a company that is transitioning over to docker for local and prod, and inherited a few 'base image' repositories for php, node and a few others. Unfortunately the creator is no longer at the company, so I'm going…
Max Colledge
  • 205
  • 1
  • 2
  • 7
0
votes
1 answer

TravisCI build continues to fail even after changing alpine version

So I ran my Docker build with TravisCI and I got a failure like so: FAIL src/App.test.js ● Test suite failed to run TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#' at exports.default…
Daniel
  • 569
  • 2
  • 5
  • 13
0
votes
1 answer

Why won't InSpec admit that port 5432 is listening inside a PostgreSQL container?

Background I'm trying to test a PostgreSQL container with InSpec 2.1.10, but I cannot get a simple port check to return true, even though Docker, netstat, and psql all report that the port is properly mapped. While it's possible this is a bug in…
CodeGnome
  • 242
  • 1
  • 7
0
votes
0 answers

Testing with nodejs and inmemory mongodb cache with bitbucket pipelines

i try to automatize my nodejs test in the bitbucket pipeline for create test and deploy logic i already create my soluction but in not confidet it's the best way; i hask if someone have tips or advise for improve my soluction DEPENDENCE I use…
Francesco
  • 1
  • 1
0
votes
1 answer

Buildkit failing arm builds with missing binaries even though they are in $PATH

A few of our developers recently got some M1 machines, I want to provide them with ARM compatible images and have set my sights on Buildkit. I set up a podTemplate in Jenkins and run the build with this command buildctl build --opt…