How can I see the exact Docker image that I'm using? - docker

I have a fresh install of Docker on Windows 11. I've updated WSL2.
In PowerShell I've run the command to install Memgraph Platform:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\mjones> wsl --update
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
PS C:\Users\mjones> docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 -v mg_lib:/var/lib/memgraph memgraph/memgraph-platform
Unable to find image 'memgraph/memgraph-platform:latest' locally
latest: Pulling from memgraph/memgraph-platform
bbeef03cda1f: Pull complete
02daf11f09c6: Pull complete
5af8c9d8a2b2: Pull complete
0491e760b2fc: Pull complete
eb6fb9e064cc: Pull complete
d5d9807e2348: Pull complete
380fd2f22c95: Pull complete
1dfa183f30c6: Pull complete
f82d62f564a4: Pull complete
73b2e2343891: Pull complete
0a07ae5e7150: Pull complete
0ade360c640a: Pull complete
a5d9a38455ce: Pull complete
b334dbe05140: Pull complete
8d4b2a9136fb: Pull complete
f89e8fe0da1d: Pull complete
ab8f88c89515: Pull complete
1673e45f8514: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:d0c983be57497f098be23324b604cbdf5ad6fc29dbb90bdad909ada1da9f73ab
Status: Downloaded newer image for memgraph/memgraph-platform:latest
Memgraph Lab is running at localhost:3000
mgconsole 1.3
Connected to 'memgraph://127.0.0.1:7687'
Type :help for shell usage
Quit the shell by typing Ctrl-D(eof) or :quit
memgraph>
Is there a docker command that I can use to check which exactly version of Memgraph Platform was installed? I can see that the tag is latest, but how can I tell to which image does it correspond?
I've taken a look at https://hub.docker.com/r/memgraph/memgraph-platform/tags and I still don't get it. I'm new to Docker. Is there a command that would says "lastes is in fact 2.6.5-memgraph2.5.2-lab2.4.0-mage1.6"? I pruse this on the fact that those two images have the same DIGEST

Related

Docker pull fails after continuous retrying to download

$ docker pull oraclelinux
Using default tag: latest
latest: Pulling from library/oraclelinux
c93adbd5ca8c: Downloading [==================================================>] 85.96MB/85.96MB
unexpected EOF
$ docker --version
Docker version 18.09.2, build 6247962
I notice that docker pull continously retries with back-off for a few times and eventually fails with unexpected EOF. Same issue observed if pulling centos, debian image.
The docker pull of this image from a repository in local network succeeds. I'm trying to figure out the failure for pulls from github.io.
docker pull for smaller size images (ex: alpine, helloworld) succeeds.
Running Docker Desktop Version 2.0.0.3 (31259) on MacOS High Sierra. Restarting Docker did not resolve the issue.
Any pointers are greatly appreciated.
Found an answer. I had to use Manual Proxy Configuration within Docker Desktop to point to an internal corp proxy for this to work.

docker unauthorized: authentication required

I'm on windows 10 pro, using docker for windows, using linux containers
i have logged in using docker login -u username -p password
and i'm getting this issue alot, not just with httpd but also with django, mysql .. etc
> docker container run -p 8080:80 -d --name n2 httpd
Unable to find image 'httpd:latest' locally
latest: Pulling from library/httpd
3d77ce4481b1: Downloading
73674f4d9403: Download complete
d266646f40bd: Download complete
ce7b0dda0c9f: Download complete
01729050d692: Download complete
014246127c67: Download complete
7cd2e04cf570: Download complete
docker: unauthorized: authentication required.
See 'docker run --help'.
to solve this issue update windows to winver 1803 (the new April Spring Creators update)

docker-compose doesn't see docker

If you launch docker-run by yourself it works, if you do this with docker-compose it doesn't
roman#debian ~/D/O/devops> docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Digest: sha256:083de497cff944f969d8499ab94f07134c50bcf5e6b9559b27182d3fa80ce3f7
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://cloud.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
roman#debian ~/D/O/devops> docker-compose build app
Building app
ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
roman#debian ~/D/O/devops>
Ok it's solved, previously been installing compose from repository, now installed through pip and it's working

Unable to pull ubuntu image using docker on windows host

I have installed docker on windows 10.
Docker version:
Docker version 17.09.0-ce, build afdb6d4
I tried to pull latest ubuntu and ubuntu:16.04 using the bellow two commands
docker pull ubuntu
docker pull ubuntu:16.04
But I am getting the below error.
docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
no matching manifest for windows/amd64 in the manifest list entries
So is there any way to fix this issue?
You can't run linux images with a windows daemon.
If you are running Docker for Windows, it gives you the ability to switch between running a Windows Docker daemon and a Linux Docker daemon inside a hyper-v VM.
To run Linux workloads, make sure you have chosen "Switch to Linux Containers" in the Docker for Windows whale icon menu.
please follow the Docker tutorial here
In this case the problem is it requires adding the --experimental flag when starting dockerd.exe.

Connecting Docker to X11 via VNC fails

I have an ubuntu server without a display which runs a vncserver and I access it via VNC.
On this server I have tried to run the chrome example from this blog : https://blog.jessfraz.com/post/docker-containers-on-the-desktop/
but it failed like this:
>./runChrome.sh
Warning: '--cpuset' is deprecated, it will be replaced by '--cpuset-cpus' soon. See usage.
Unable to find image 'jess/chrome:latest' locally
latest: Pulling from jess/chrome
42b46c8b387a: Pull complete
9402e656a0ac: Pull complete
753b4bb947ba: Pull complete
9f3ad4f52cb2: Pull complete
c3374db106fe: Pull complete
0cdf8bc021c3: Pull complete
e1db72a1498b: Pull complete
fe339b19b201: Pull complete
7b966fb57da2: Already exists
Digest: sha256:65185c906ab67ca126ca49943cc5c4f05d2e6c9aac04a505fa3f5e6b183b72da
Status: Downloaded newer image for jess/chrome:latest
WARNING: Your kernel does not support swap limit capabilities, memory limited without swap.
[1:1:0729/171614:ERROR:browser_main_loop.cc(185)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
No protocol specified
[1:1:0729/171614:ERROR:browser_main_loop.cc(231)] Gtk: cannot open display: unix:1
>cat runChrome.sh
docker run -it --net host --cpuset 0 --memory 512mb -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v $HOME/Downloads:/root/Downloads -v $HOME/.config/google-chrome/:/data --device /dev/snd --name chrome jess/chrome
Any idea how to fix this ?
What might be going wrong ?
This worked:
docker run -e DISPLAY -v $HOME/.Xauthority:/home/ghc/.Xauthority --net=host -ti 80d81a4ae162 /bin/bash
Got inspired by the comments here : http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/

Resources