mesedgedriver docker file host OS version - windows

I am trying to run the following dockerfile: https://hub.docker.com/_/microsoft-msedge-msedgedriver?tab=description
I attempted to run this on a linux-host, it told me it can't run a windows image. I then attempted to run it on a 2022 Windows Server, it said the OS version has to match. But I can't seem to see whereabouts there is any mention of a host OS version? So my 2 questions are as follows:
What host OS version do I need for msedgedriver (https://hub.docker.com/_/microsoft-msedge-msedgedriver?tab=description)
Can you run a command/inspect an image to see what it needs/its Dockerfile? (I assume the dockerfile doesn't get bundled in the image, but worth a question :))
Thanks

Related

Cant start docker containers from Docker Desktop in Mac

I've used docker desktop in Linux and Windows without problem, but i recently got a mac, and when i try to start a docker container i have setup via Docker Desktop, the docker container starts, but immediately just changes from "Running" to "exited" status.
This doesnt happen in the other environments i use docker, so any help would be appreciated.
I have been trying to find any kind of logs, but i cant find any.
im using mac os x 11.7.1 (Big Sur)
Docker desktop is the newest version 4.16.2
I have tried so far:
Reinstalling Docker Desktop
verified and ensured the permissions for access to docker are set correctly (access to files and folders)
I have setup my dockerhub account
Im using the latests versions of the php and python images available at docker hub.
Thank you.

Docker failed to initialize Docker-Desktop 4.16.1

OS Windows 11 21H2 OS Build 2000.1455
Docker 4.16.1
I have created a MSI file which executes a PowerShell script by using a bat file. PowerShell script enables wsl and Virtual Machine features. Download and installs Linux kernel update package and docker-desktop. After system reboot, we invoke docker desktop by using
& C:\Program Files\Docker\Docker\Docker Desktop.exe
Docker desktop starts and PowerShell script executes docker compose up -d command to configure a web application. it works fine on my
system with OS Windows 11 21H2 OS Build 2000.1455.
But on client’s system with OS Windows 11 21H2 OS Build 2000.1455, See image attached.
Docker desktop starts and then it shows “Docker Failed to Initialize” message with description
“Could not load file or assembly ‘Nlog version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c’ or one of its dependencies. The system can not find the file specified.”
I searched and i am unable to find this error in context of docker(it is available for c#). Can somebody help me to replicate this issue or provide me a solution for the same?
Please let me know if you have any questions?
Thanks!
I searched for the solution at github
https://github.com/docker/for-win/issues
I also searched and added question at
https://forums.docker.com/t/docker-failed-to-initialize-docker-desktop-4-16-1/134167
I am not able to replicate this on my machine and one another machine with fresh windows install. This issue is occurring at client's machine with same configuration.

How to build a docker image that can copy a file from a host to container in mac os?

I have a docker installed in my mac. And I am trying to write a Dockerfile that can copy from a macos file path to the container. I tried both ADD and COPY as listed in the docs but they don't work on macos.
I see that docker on mac installed linux kernel so the host would be the linux running inside a mac I suppose but my file is in a mac file system therefore it doesn't work.
How do I get around this?

Docker pull gives error unkown blob for microsoft/windowsservercore

I've mac OS as my host operating system and trying to pull an windows image microsoft/windowsservercore . While downloading it gives unknown blob error.
Docker version is 17.03.0-ce and shows OS/arch as linux/amd64. Would it be helpful if I change the OS/arch similar to the below:
https://i1.wp.com/blog.docker.com/wp-content/uploads/docker-for-windows-switch.gif?zoom=1.25&w=1140&ssl=1/
If so, could some one help me on how to switch to windows container from MAC
Thanks in Advance
To pull and run Docker Windows container images, you have to have a Windows machine available. On macOS, you'd have to run Windows 10 or Windows Server 2016 in a VM. Here are some resources for getting set up:
https://github.com/docker/labs/tree/master/windows/windows-containers
https://github.com/StefanScherer/docker-windows-box

Version error when installing docker toolbox on OSX

I'm new to docker and have been following the guide, trying to install the toolbox version v1.10.0-rc1. All seems to have gone well until I try the hello-world example and then I get:
Error response from daemon: client is newer than server (client API
version: 1.22, server API version: 1.21)
I see there is much online about similar errors, however all attempts so far have failed, and being unfamiliar with docker, the suggested solutions are somewhat cryptic.
Has any had a similar issue and found a solution?
Many thanks
Docker tool box is being used in old mac and or windows system.
today there are differnt approaches to install docker on your mac.
In case your mac isn't that old try install it from here

Resources