if you want to create XML files with powershell which can be used on UNIX/Linux systems you need to write an own save function. Ths save() methode of the System.XML.XMLDocument class can only write Windows style XML files with Carriage return/New line endings. Continue reading Powershell: Write XML files with UNIX line endings→
Windows 11 comes with a “face lift”. The Ribbon bar of the explorer, introduced in Windows Vista, was removed. But many User likes them because many functions like copy etc. can really fast accessed without opening a context menu. Continue reading Windows 11: Enable the Explorer Ribbonbar→
WSL is not limited to the OS images from the Micosoft store. You can import custom images either when the distributor offers a mini root file system or you can convert docker os images for the import into wsl. This is described in this post.
Docker Desktop for Windows installed with the WSL 2 backend engine installed, enabled and checked if the integration works
Installation Docker Desktop for Windows. Download latest version, start installation and ensure “Install requiered Windows Components for WSL2” is selected. Docker WSL Integration
Logoff and Logon after installation. Start the Docker Desktop Start Docker desktop
goto settings and check if wsl2 is enabled Docker desktop settings
Then go to Resources and select the wsl distributions where docker should be available Docker WSL Integration into distribution
An example:
Start the wsl distribution Ubuntu and check if docker works.
D:\> ubuntu2004
michael@windev:~$ docker --version
Docker version 20.10.10, build b485636
A “service docker start” as describted in the microsoft documentation is not necessary.
Search docker hub for suitable (offical) OS Image. Here Archlinux
WSL Custom Image Archlinux
Get the arch linux docker container and start it (see documentation of the vendor)
michael@windev:~$ sudo su
root@windev:/home/michael# docker run -it --name archlinux_export archlinux bash -c ls -l
Unable to find image 'docker:latest' locally
7a147323bccf: Extracting [============> ] 34.54MB/134.3MB
160ee6c41455: Download complete
Get an id from an archlinux container and export the container to one of your Windows drives. Here D:\temp which is mounted under /mnt/d/temp.
root@windev:/home/michael# docker container list --all| grep -i archlinux_export
c50a0039d252 archlinux "bash -c ls -l" 42 seconds ago Exited (0) 40 seconds ago
root@windev:/home/michael# docker export c50a0039d252 > /mnt/d/temp/archlinux.tar
My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…
This website uses cookies to improve your experience and to serv personalized advertising by google adsense. By using this website, you consent to the use of cookies for personalized content and advertising. For more information about cookies, please see our Privacy Policy, but you can opt-out if you wish. AcceptRejectRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.