Posts

Alpine Docker ERROR: Unable to lock database: Permission denied ERROR: Failed to open apk database: Permission denied

Problem So I have used the default docker for testcafe which on docker hub is testcafe/testcafe and I have to run a few testcafe scripts. H…

Installing OpenSSH on the Alpine Docker Container

Problem When running the alpine docker container the first time and attempting an openssh install, the following happens: ole@T:~$ docker ru…

Docker: any way to list open sockets inside a running docker container?

Problem I would like to execute netstat inside a running docker container to see open TCP sockets and their statuses. But, on some of my dock…

Go-compiled binary won't run in an alpine docker container on Ubuntu host

Problem Given a binary, compiled with Go using GOOS=linux and GOARCH=amd64 , deployed to a docker container based on alpine:3.3 , the binar…

Error: pg_config executable not found when installing psycopg2 on Alpine in Docker

Problem I'm trying to build a Flask app using Postgres with Docker. I'd like to connect to an AWS RDS instance of Postgres, but use D…

Install packages in Alpine docker

Problem How do I write Dockerfile commands to install the following in alpine docker image: software-properties-common openjdk-8-jdk pyth…

How do I install python on alpine linux?

Problem How do I install python3 and python3-pip on an alpine based image (without using a python image)? $ apk add --update python3.8 pyth…

In Docker image names what is the difference between Alpine, Jessie, Stretch, and Buster?

Problem I am just looking at docker images in https://hub.docker.com/_/node/ For every version, the images are categorized into Alpine, Jess…

Why does it take ages to install Pandas on Alpine Linux

Problem I've noticed that installing Pandas and Numpy (it's dependency) in a Docker container using the base OS Alpine vs. CentOS or …

Alpine Dockerfile advantages of --no-cache vs. rm /var/cache/apk/*

Problem When creating Dockerfiles using an Alpine image, I have often seen the use of either apk add --no-cache , or apk add followed by …

No such file or directory limits.h when installing Pillow on Alpine Linux

Problem I'm running alpine-linux on a Raspberry Pi 2. I'm trying to install Pillow via this command: pip install pillow This is th…

Why is the Java 11 base Docker image so large? (openjdk:11-jre-slim)

Problem Java 11 is announced to be the most recent LTS version. So, we're trying to start new services based on this Java version. Howev…

What is .build-deps for apk add --virtual command?

Problem What is .build-deps in the following command? I can't find an explanation in the Alpine docs. Is this a file that is predefine…

Starting a shell in the Docker Alpine container

Problem To start an interactive shell for the Ubuntu image we can run: ole@T:~$ docker run -it --rm ubuntu root@1a6721e1fb64:/# ls bin boot…

How do I add a user when I'm using Alpine as a base image?

Problem I'm using alpine (or an image that is based on Alpine) as the base image in my Dockerfile. Which instructions do I need to add t…

Docker: How to use bash with an Alpine based docker image?

Problem I created a docker image from openjdk:8-jdk-alpine and I want to use bash , rather than sh as my shell, however when I try to execu…

Error: pg_config executable not found when installing psycopg2 on Alpine in Docker

Problem I'm trying to build a Flask app using Postgres with Docker. I'd like to connect to an AWS RDS instance of Postgres, but use D…

How do I install python on alpine linux?

Problem How do I install python3 and python3-pip on an alpine based image (without using a python image)? $ apk add --update python3.8 pyth…

In Docker image names what is the difference between Alpine, Jessie, Stretch, and Buster?

Problem I am just looking at docker images in https://hub.docker.com/_/node/ For every version, the images are categorized into Alpine, Jess…

Why does it take ages to install Pandas on Alpine Linux

Problem I've noticed that installing Pandas and Numpy (it's dependency) in a Docker container using the base OS Alpine vs. CentOS or …

Alpine Dockerfile advantages of --no-cache vs. rm /var/cache/apk/*

Problem When creating Dockerfiles using an Alpine image, I have often seen the use of either apk add --no-cache , or apk add followed by …

No such file or directory limits.h when installing Pillow on Alpine Linux

Problem I'm running alpine-linux on a Raspberry Pi 2. I'm trying to install Pillow via this command: pip install pillow This is th…