Db2 pull docker image and Trial version Db2 Binary comparison - db2

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.

Related

how to create postgresql server on rhel7 linux vm in gcp

I am actually planning to have a PostgreSQL instance on rhel7 linux vm running on google cloud platform,
Can you let me know the process for the same.
One more query is it ok to install postgresql on vm rather than going for a cloud sql instance on gcp?
Thanks,
Moin.
Just go to the PostgresSQL official downloads page for redhat and install the software.
You can get the RPMs there if you need to do an air-gapped installation.
You'll need to configure postgres later. See Posgres docs Chapter 18. Server Setup and Operation.

PostgreSQL / pgAdmin4 / dump server version mismatch using docker images

My environment is using the following docker images:
postgres:11
dpage/pgadmin4
On a machine using unRaid for it's OS.
My issue is that I'm unable to backup anything on my postgres 11 server via pgadmin4. pgadmin4 returns the following error:
pg_dump: server version: 11.2 (Debian 11.2-1.pgdg90+1); pg_dump version: 10.5
pg_dump: aborting because of server version mismatch
There was a similar question asked here: PostgresSQL / pgAdmin4 / dump server version mismatch
They resolved in by changing the bin path, however these are docker images, and I am unable to find standalone binary file for Postgres 11 for Linux.
There is a issue in relation to this exact problem, but it was rejected and closed: https://redmine.postgresql.org/issues/3843
I'm looking for any assistance to get/replace the tools in pgadmin4 so it can properly talk to postgres11.
Turns out the solution for now is to use the snapshot build of pgadmin4's docker image.
It had something to do the tools available in Alpine Linux's docker image at the time, according to Dave Page, the maintainer of pgadmin4's docker images. They were updated recently and used in the snapshot image's build.
Whoever packaged the pgAdmin 4 you are using packaged it with a PostgreSQL v10 client.
So that's where you'll have to complain.
In this case it is obviously Dave Page.
The website of the Docker image (https://hub.docker.com/r/dpage/pgadmin4/) suggests:
Please report any issues through the pgAdmin support channels. See https://www.pgadmin.org/support/list/
So I guess the correct channel is to subscribe to that mailing list and voice your complaint there.
Sorry that this is so complicated, but the various tools in the PostgreSQL universe are maintained by different, albeit somewhat related, groups, each of which has its own channels.

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.

install and Run Kurento Media server in Cent OS 6.6 using Docker

I need to install and run Kurento Media Server in a Cent OS to use it for Large Scale Webrtc Application for one to many conferences .
I heard that it can be done through Docker.
So if some can guide me through the steps to do so I will be thankful.
But if you know some other way to install and run Kurento Media Server in Cent OS
then that is fine with me.
You will find several examples in the Docker Hub, see https://registry.hub.docker.com/search?q=kurento&searchfield= and some examples
so you can get one, issue a docker history to see what commands were used to build (and some docker inspect on each layer), or simply use https://github.com/CenturyLinkLabs/dockerfile-from-image to generate the associated Dockerfile

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.