How to find software version in a docker image - docker

I'm trying to find a suitable docker image to host a spring application. The current stack used is openjdk 11 and Tomcat 9.
Docker hub https://hub.docker.com/_/tomcat?tab=tags&page=1&ordering=last_updated has image and I can see lot of tags. But the tags are not descriptive. Is there a way to identify if an image has a specific version version of Tomcat and Openjdk(not the oracle jdk)

You can try using the docker search command from the command line which returns the description column as well for the images.
Examples:
docker search tomcat
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
tomcat Apache Tomcat is an open source implementati… 2951 [OK]
tomee Apache TomEE is an all-Apache Java EE certif… 86 [OK]
dordoka/tomcat Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 base… 55 [OK]
bitnami/tomcat Bitnami Tomcat Docker Image 37 [OK]
kubeguide/tomcat-app Tomcat image for Chapter 1 29
consol/tomcat-7.0 Tomcat 7.0.57, 8080, "admin/admin" 18 [OK]
docker search tomcat9
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
kikov79/tomcat9 Ubuntu 14.04, Oracle JDK 8 and Tomcat 9 base… 4 [OK]
oupula/tomcat9_jdk8 apache tomcat 9.0.13 + jdk1.8.0_191 + tomcat… 2
zzjhacn/tomcat9jdk8 tomcat9 with oracle jdk8 on Alpine (78M) 2 [OK]
donglsheng/tomcat9_jdk8 jdk8 tomat9 1
ykaj9758/tomcat9 tomcat9 1
utmstack/tomcat9-omp-war2safe tomcat9-omp-war2safe 0
docker search tomcat9jdk11
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
aptea/tomcat9jdk11 0
binbin0915/tomcat9jdk11 0
kapitanmf/tomcat9jdk11partner 0
kapitanmf/tomcat9jdk11 0
Note: The description column is not set for all of the images though.

You can try docker image inspect <image_sha> and there should be version of application I did it for artifactory and there is a key named
ARTIFACTORYVERSION=7.39.4

Related

Creating images on Docker

I'm trying to make docker applications using Ubuntu 18.04 LTS.
I have installed Docker Desktop and am trying to use Python for application code.
I cannot seem to manage to get this working, I end up getting the same error :
The command 'docker' could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.
I tried several suggestions on the Internet, without any succes.
The main problem resides, I think, in the fact that I am trying to run Docker Desktop on Windows Home. Can anyone help out?
Judging from the error message, you have installed Docker in Windows, not in Ubuntu. Is that correct?
You would need to install Docker directly on your Linux distro (Ubuntu 18.04 LTS, here's how) or use WSL version 2. Only with WSL 2 it's possible to use Docker Desktop on Windows with WSL.
You can find a comparison of WSL 1 and 2 here: https://learn.microsoft.com/en-us/windows/wsl/compare-versions
Convert your Ubuntu installation to WSL 2 using these instructions:
https://learn.microsoft.com/en-us/windows/wsl/basic-commands#set-wsl-version-to-1-or-2
In powershell run the command:
wsl --install
This command will enable the required optional components, download
the latest Linux kernel, set WSL 2 as your default, and install a
Linux distribution for you (Ubuntu by default, see below to change
this).
https://learn.microsoft.com/en-us/windows/wsl/install
If this didn't work then you can manually set the WSL 2 as your default following the below link:
https://learn.microsoft.com/en-gb/windows/wsl/install-manual#step-5---set-wsl-2-as-your-default-version
And then you can open Docker Desktop and enable WSL 2.
Go to Settings -> General
WSL 2 based engine
Select the Use WSL 2 based engine check box. And then click Apply & Restart.
Then go to Settings -> Resources -> WSL INTEGRATION
Select distro
Select the Enable integration with my default distro
And select your distro, for example ubuntu and click Apply & Restart.
Finally you should be able to execute docker command in you ubuntu WSL

Running WSL2 on Windows 10 Enterprise to drive Docker Backend

I am trying to have my Windows 10 Enterprise LTSC (IOT) on run WSL 2. I'm at the latest LTSC Version (1809, build 17763) and have WSL 1 enabled, however installing WSL 2 seems to be limited to the Version 1903 and above, which isn't available for the LTSC configuration. Has anyone got a workaround for LTSC builds to get WSL 2 installed?
I'd like to have Docker's WSL 2 backend running, which is a requirement for Laravel's Sail Environment

Docker search and description column

I have a problem with DESCRIPTION column in Docker Toolbox.
When I am searching for example like below:
I don't see full value in DESCRIPTION column. I didn't see anything about this problem in https://docs.docker.com/engine/reference/commandline/search/#extended-description.
There is some magic trick to resolved it?
Only way is put full description into "Readme"?
Use the --no-trunc switch:
# docker search --no-trunc oracle
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
oraclelinux Official Docker builds of Oracle Linux. 536 [OK]
sath89/oracle-12c Oracle Standard Edition 12c Release 1 with data mount support and etc 435 [OK]
frolvlad/alpine-oraclejdk8 The smallest Docker image with OracleJDK 8 (167MB) 355 [OK]
alexeiled/docker-oracle-xe-11g This is a working (hopefully) Oracle XE 11.2 on top of Ubuntu 14.04 LTS 277 [OK]
sath89/oracle-xe-11g Oracle xe 11g with database files mount support and graceful shutdown database files mount support 230 [OK]
...
I think docker toolbox is some Windows related thing. Have tested it on Linux only but It should work on Win too, when it's a full compatible port of the Linux Docker.

docker IIS container locks up

I am trying to follow the instructions to run an IIS container
I am a total newbie so I might be missing a step.
I am using WIndows 10 Pro with Docker for Windows set to Windows.
Docker is Version 17.06.0-ce-win18 (12627)
Channel: stable
d9b6651
I downloaded the image and then ran
Docker run 30
where 30 was my container
The container seems to have locked up showing
This is followed by issue 44
Latest version of `microsoft/iis' image produces following output to container logs. This was not the case on previous versions
So:
check if the error persists when using microsoft/iis:nanoserver-10.0.14393.1198 instead of :latest
the issue mentions: " Currently trying to work around this issue by using SPINNER instead of servicemonitor"

Liberty Profile Docker for last version 16.0.0.4 available?

anybody has a running Liberty 16.0.0.4 in Docker? Custom Dockerfile?
Last one seems to be officially available (Docker) is 16.0.0.3 but maybe I'm missing something...
The websphere-liberty image on Docker Hub is at the 16.0.0.4 level.
$ docker run websphere-liberty:latest productInfo version
Product name: WebSphere Application Server
Product version: 16.0.0.4
Product edition: BASE_ILAN

Resources