Skip to content

Commit

Permalink
Merge pull request #13345 from spowelljr/wslDocument
Browse files Browse the repository at this point in the history
Add docs for setting up WSL 2 & Docker
  • Loading branch information
medyagh authored Jan 25, 2022
2 parents 3018093 + 39c89f3 commit cf95dd3
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 42 deletions.
41 changes: 40 additions & 1 deletion site/content/en/docs/drivers/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,46 @@ aliases:

The Docker driver allows you to install Kubernetes into an existing Docker install. On Linux, this does not require virtualization to be enabled.

{{% readfile file="/docs/drivers/includes/docker_usage.inc" %}}
{{% tabs %}}
{{% tab "Standard Docker" %}}
## Requirements

- [Install Docker](https://hub.docker.com/search?q=&type=edition&offering=community&sort=updated_at&order=desc) 18.09 or higher
- amd64 or arm64 system.
- If using WSL complete [these steps]({{<ref "/docs/tutorials/wsl_docker_driver">}}) first

## Usage

Start a cluster using the docker driver:

```shell
minikube start --driver=docker
```
To make docker the default driver:

```shell
minikube config set driver docker
```
{{% /tab %}}
{{% tab "Rootless Docker" %}}
## Requirements
- Docker 20.10 or higher, see https://rootlesscontaine.rs/getting-started/docker/
- Cgroup v2 delegation, see https://rootlesscontaine.rs/getting-started/common/cgroup2/

## Usage

Start a cluster using the rootless docker driver:

```shell
dockerd-rootless-setuptool.sh install -f
docker context use rootless

minikube start --driver=docker --container-runtime=containerd
```

The `--container-runtime` flag must be set to "containerd" or "cri-o".
{{% /tab %}}
{{% /tabs %}}

## Special features

Expand Down
39 changes: 0 additions & 39 deletions site/content/en/docs/drivers/includes/docker_usage.inc

This file was deleted.

17 changes: 17 additions & 0 deletions site/content/en/docs/tutorials/wsl_docker_driver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Setting Up WSL 2 & Docker Desktop"
linkTitle: "Setting Up WSL 2 & Docker Desktop"
weight: 1
date: 2022-01-12
---

## Overview

- This guide will show you how to setup WSL 2 and Docker Desktop.


## Steps
Microsoft and Docker have in-depth guides for both, just follow along for a successful setup!

1. [Install WSL](https://docs.microsoft.com/en-us/windows/wsl/install)
2. Install and setup [Docker Desktop for Windows](https://docs.docker.com/desktop/windows/wsl/#download)
4 changes: 2 additions & 2 deletions site/static/js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function initTabs() {
try{
$('.tab-content').find('.tab-pane').each(function(idx, item) {
var navTabs = $(this).closest('.code-tabs').find('.nav-tabs'),
title = escape($(this).attr('title')),
os = escape($(this).attr('os'));
title = escape($(this).attr('title')).replace(/%20/g, ' '),
os = escape($(this).attr('os') || '');
navTabs.append('<li class="nav-tab '+os+'"><a href="#" class="nav-tab">'+title+'</a></li>');
});

Expand Down

0 comments on commit cf95dd3

Please sign in to comment.