How to 'make' OpenWhisk Docker Compose in Windows 10? - openwhisk

I am new to OpenWhisk.
I have windows 10, with Docker for windows installed. I followed the instructions given in the following URL to download the Docker compose from GIT, on my Windows 10 laptop.
This website mentions command 'make quick-start'. I learned from internet that 'make' is a Unix command. I want to understand how I can build this on windows?

As far as I know it doesn't work on Windows so far. See https://github.com/apache/incubator-openwhisk-devtools/issues/119 for more details.

Related

Could not run "bash build/build.sh" command in Windows PowerShell

Currently I'm working on testing a github repository and I'm following the github's README.md that requires me to run "bash build/build.sh" command line to build environment. But I somehow could not make the command run in my PowerShell. Windows PowerShell keeps showing "Windows Subsystem for Linux has no installed distributions.
Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install ' to install.
Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Bash/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND"
I have installed the Windows Subsystem for Linux Preview from Microsoft Store but I still could not run the "bash build/build.sh" command.
Question solved. I have solve it by following this youtube video.
https://youtu.be/mDmpnkjETpw
Basically you have to check two boxes in the "Turn Windows features on or off" before start trying out the Linux command.
Virtual Machine Platform
Windows Subsystem for Linux
Thanks for viewing.

How to run Windows Nano Server container from Windows 10 Pro?

My host is running Windows 10 Pro, version 2004, build 19041.1052. I have the Hyper-V and Containers Windows Features enabled. I am running Docker Desktop 4.0.0 (67817), Engine 20.10.8. I have chosen the engine for Windows Containers. I have pulled the Nano Server image tagged 2004-amd64 (build 19041.1165). I have a Ryzen 9 CPU. When I try to run the image with this command from a PowerShell run as Administrator:
docker run -it mcr.microsoft.com/windows/nanoserver:2004-amd64 --rm cmd.exe
I get this error:
C:\PROGRAM FILES\DOCKER\docker.exe: Error response from daemon: container
52d69ec5645099a0c729a285c1192f4cb909f167d36efa4cf60cf9cc82c6cd56 encountered an error
during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot
find the file specified. (0x2).
Searching this error yields a few questions from people having trouble building an image. None that I have seen have an accepted answer, and none of the suggestions seem relevant to me (most are focused on editing the Dockerfile).
I'm not married to this image tag. I would like to run some version of Nano Server or Server Core. Is it possible? How can I do it?
Today, after pulling and running mcr.microsoft.com/dotnet/framework/sdk:latest and mcr.microsoft.com/windows/servercore:2004-amd64 (both of which worked), I am now able to run the image mcr.microsoft.com/windows/nanoserver:2004-amd64 that was giving me trouble yesterday. I don't know what fixed it. Maybe some image layer was missing that got filled in by pulling another image using the same layer?

Docker for windows Vs Docker inside Windows Ubuntu App?

I am trying to know the best way to run Docker in Win 10 machines that dosn't have too many resources.
I am runing Docker using the docker for windows and things run quite good but I wonder if it will be better specialy about symlinks issues and resources hunger if i run Docker inside the new Ubuntu on Windows. https://www.microsoft.com/es-es/p/ubuntu/9nblggh4msv6?activetab=pivot:overviewtab
When you try to install Docker in Ubuntu for Win a message shows advising to use Docker for Windows instead.
Any thoughts out there ?

Docker Desktop Installation failed: one prerequisite is not fulfilled on Windows 10

I have a problem when installing a Docker Desktop 2.3.0.3
"Installation failed: one prerequisite is not fullfilled"
Docker Desktop requires Windows 10 Pro/Enterprise (15063+) or Windows 10 Home (19018+).
My Computer System Specification:
OS Name: Microsoft Windows 10 Pro
Version: 10.0.10240 Build 10240
RAM: 8Gb
I have tried manually Install Hyper-V and Containers in my Computer, but still failed to install the desktop docker.. Anyone can help me? Im need your help.
You need to install Windows 10 Home 2004 build which was released on May 2020, you can use Microsoft's update assistant to manually get the update if it's not showing up for you on Windows.
Get it here: https://www.microsoft.com/en-us/software-download/windows10
You may want to try Docker Toolbox
Docker Toolbox is an installer for quick setup and launch of a Docker
environment on older Mac and Windows systems that do not meet the
requirements of the new Docker Desktop for Mac and Docker Desktop for
Windows apps.
The actual required Windows version is greater than what it says in the installer GUI.
It might be a typo! and according to Docker this has happened before:
Docker actually requires Windows build xxxxx or greater - we're
working on the typo in the installer gui, but you'll need to update
your Windows to proceed. (Jan 8, 2018)
Just Update Windows and the problem goes away.
If you cannot update the system use choco
Install following the official Сhocolatey documentation: https://chocolatey.org/install
After installation, run the command choco install docker-desktop or follow the official installation documentation https://community.chocolatey.org/packages/docker-desktop

How to initialize and run Docker on windows?

I have Docker installed on Windows 7 platform. However when I try to run boot2docker start, the console gives me:
Failed to get machine 'boot2docker-vm': machine does not exist.
Ok, so I try to initialize the machine: boot2docker init. What now happens is even though I have the ISO image on the same path as docker, it tries to download a new image (and then fails to do so).
I uninstalled both OracleVM and GIT before installing them with boot2docker bundle as advised on Docker forums, but now I don't know how to proceed.
I had the same problem on a Windows 7 64 bit system when I installed the entire boot2docker package. It seems that running the solely 64-bit based boot2docker image from a 32-bit OS image (e.g. created by Virtualbox) does not work.
The solution for me was
to activate Intel Virtualisation Technolologies in my BIOS
(Lenovo X61 for me). Note that the settings can be found either
under CPU or Security.
choose a 64 bit OS version in VirtualBox and boot in with the
image obtained by boot2docker.
In case you're trying to do this now
For Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later), follow the instructions to install Docker Desktop here https://docs.docker.com/docker-for-windows/install/.
If you have Windows systems that do not meet the requirements of Docker Desktop for Windows(in my case Microsoft Windows 10 Home Single Language), you can install Docker Toolbox by following the instructions here https://docs.docker.com/toolbox/toolbox_install_windows/.
boot2docker does not support sharing directories on Windows IIRC. The way I run Docker on windows is:
install VirtualBox
install Vagrant
create a directory (let's say c:\vm\docker)
download this Vagrantfile and save it under c:\vm\docker\Vagrantfile
open a DOS command prompt
go to the directory cd c:\vm\docker
start the VM vagrant up and wait for it to install, start up and get provisionned
connect to the VM vagrant ssh
play with docker docker images, etc
Also you might want a real console instead of using the DOS command prompt:
install Git Bash for Windows
install Console
setup Console to use Git Bash (see this guide)
use Console to run the vagrant up and vagrant ssh commands

Resources