I have a new project that will use storage in Docker (see Manage data in Docker). I found one section of the documentation to be confusing because it does not distinguish between persisted and in-memory file storage:
Friday, February 4, 2022
Docker: First Merged to master Contribution to docker.github.io
Sunday, January 23, 2022
WSL 2.0: Setting up Git on a Windows Subsystem for Linux (WSL) Distribution
In order to run git on a Windows Subsystem for Linux (WSL) distribution, git must be explicitly installed on the distribution. This installation differs from git installed on the host, Windows machine. This post documents the steps required to install and run git on a WSL distribution.
1. Install the git application using sudo apt install git
- for HTTP-enabled Git repositories provides support for single-factor authentication
- for ADO (Azure DevOps), Bitbucket, and GitHub support for multi-factor authentication
Example of Git Credential Manager
Appendix A: Git Credential Manager
Saturday, January 22, 2022
WSL 2.0: wget and ca-certificates -- Key apps for Developing with WSL Distribution
The prerequisites needed to prepare a WSL distribution to be used for development include:
- ca-certificates: used by applications to validate the authenticity of SSL connections
- wget: used by applications to download files via standard protocols (HTTP, HTTPS, FTP)
To install ca-certificates and wget on a distribution use the command, sudo apt install wget ca-certificates, as follows:
The install of wget and ca-certificates when completed is as follows:
Appendix A: wget
Appendix B: ca-certificates
WSL 2.0: Accessing a Windows System for Linux (WSL) Distribution from Windows
The file system for each Windows System for Linux (WSL) distribution is accessible from Windows using the \\wsl$ folder. Below the \\wsl$ folder is shown for a WSL instance containing a single distribution, Ubuntu-20.04:
WSL 2.0: Accessing Windows Files from a Windows System for Linux (WSL) Distribution
When WSL is installed and a distribution is installed on WSL, the distribution is associated with a file system separated from Windows NTFS file system of the host. Linux's view of file systems is as mount points which can be viewed using: ls -al /mnt | more
Piping the output of ls to more strips the colors from the output which makes the output readable to certain categories of color-blind engineers (see Ubuntu (for the color blind developer): Removing colors from ls).
The 'c' drive under /mnt is the Windows file system corresponding to the C: drive. The contents of Windows C: can be viewed using ls -al /mnt/c | more as follows:
WSL 2.0: Linux (Ubuntu/Debian) apt Updating and Upgrading Applications
Once a Linux distribution such as Ubuntu or Debian has been installed on WSL 2.0, the applications currently installed can be updated and upgraded using the apt command. This command is invoked as follows to first update and then upgrade existing applications:
sudo apt update && sudo apt upgrade