how to create docker image for a new version of alpine linux which is not available on dockerhub - alpine-linux

Is there a way to create alpine docker image from scratch for a new version of alpine let's say 3.x.x which is not available on docker hub? All the downloads I see on http://nl.alpinelinux.org/alpine/v3.4/releases/x86_64/ are iso and not sure how to create rootfs.tar.gz from which the existing docker images in docker hub are created.

Assuming the downloaded filename is rootfs.tar.gz this is what your Dockerfile would be
FROM scratch
ADD rootfs.tar.gz /

Related

docker ecs command not found

I am trying to use the new docker ecs feature, but just get an error 'ecs' is not a docker command.
Using the latest version of docker edge on macOS 10.15.7
Do I need some additional steps to activate the docker command?
For anyone who was following documentation they found about docker ecs written previous to some development changes - while it used to be a plugin, ECS integration is now part of the docker cli itself.
This document covers how to set it up using a context
https://docs.docker.com/engine/context/ecs-integration/

Is there any corda 4.1 docker container available?

Is there any corda 4.1 docker container available?
Tried some sample repositories available in Github, but it deals with Corda version 2.0
Yes, There is docker image available for Corda 4+.
Here is the Link: https://hub.docker.com/r/corda/corda-zulu-4.1

Db2 pull docker image and Trial version Db2 Binary comparison

I have a Db2 11.5 Trial Version image for installing db2 on RHEL7. I have no connectivity with the internet where docker installed and I want to configure db2 on docker with that 11.5 Trial Version image.
Is there any limitation to use only docker certified image for dockerization?.
There's no requirement that you use IBM's docker images when running Db2 in Docker. You can absolutely build your own Docker images from the standard installable code.
However, are you aware that you can "export" Docker images to using docker save and "import" them using docker import? This is certainly one way you could get IBM's official docker images on to a machine that does not have direct internet access.

PostgreSQL 9.6.9 on Alpine Linux (arm32v6) in Docker container - how to install correct postgresql-contrib package?

I need to install PostgreSQL 9.6.9 with uuid-ossp support in a Docker container on a 32-bit ARM system (its a QNAP NAS, CPU: Annapurna Labs Alpine AL-314).
I found the arm32v6/postgres images and installed arm32v6/postgres:9.6.9-alpine. This is working smoothly, but lacks the postgresql-contrib package. As far as I understand, I need to install postgresql-contrib to get uuid-ossp support.
I opened a CLI in the container and tried:
# apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/armhf/APKINDEX.tar.gz
v3.7.0-215-g16971064c0 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-207-gac61833f9b [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 8879 distinct packages available
# apk add postgresql-contrib=9.6.9-r0
ERROR: unsatisfiable constraints:
postgresql-contrib-10.4-r0:
breaks: world[postgresql-contrib=9.6.9-r0]
How can I install the correct version of postgresql-contrib? Or can I just use postgresql-contrib-10.4-r0 with PostgreSQL 9.6.9?
Just use base alpine image and install PostgreSQL completely from Alpine's official packages: postgresql and postgresql-contrib. The last stable Alpine providing PostgreSQL 9.6 is v3.6, which is two versions behind, but still supported. Alpine v3.7 provides only 10.4.
Also don't specify exact version to apk add. Alpine provides only single version of the package per branch (e.g. v3.7, v3.8, edge). Once we release postgresql-contrib 9.6.9-r1 or 9.6.10-r0 (e.g. fixing some security issue), 9.6.9-r0 will not be available anymore and your apk add postgresql-contrib=9.6.9-r0 will fail.
These specialized Docker images “packaging” something that is already properly packaged in Alpine are mostly totally useless and just causes confusions and problems. I can't even count how many times I'm responding to this type of issue on SO.
I found out that the arm32v6/postgres:9.6.9-alpine Docker image does have uuid-ossp support out of the box. The image seems to be compiled with (some?) postgres-contrib modules. A look into the Dockerfile might help.

How to create postgresql database image file for docker on windows?

I installed docker in my windows operating system. And now I want to install postgresql database on docker, but I couldn't find any image file for windows. Could any one tell me how to create an image file for postgresql or how to get postgesql file for windows from docker hub? Please share the documents if possible.
Try this doc, in my opinion, images are the same between Win and linux. The difference is your environment, you run commands from a docker VM.
But commands docker are the same.