Skip to content

Commit 775538a

Browse files
authored
Merge pull request #74 from docker/cli-install-in-wsl2
Add WSL2 instructions for CLI install
2 parents cc18c9b + ff856d2 commit 775538a

File tree

3 files changed

+52
-17
lines changed

3 files changed

+52
-17
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This repository includes Desktop Extension samples.
66

77
:warning: **This work is experimental and still in progress, features and APIs detailed are subject to change**
88

9+
## Documentation
10+
11+
The documentation is published and best viewed at https://docker-desktop-extensions.netlify.app/.
12+
913
## Prerequisites
1014

1115
To get started with Docker Extensions you will need a specific Docker Desktop build that comes with extension capabilities and the Extensions CLI.

docs/index.md

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,54 @@ Go to the [releases page](https://github.com/docker/desktop-extension-samples/re
2727

2828
Once you've downloaded Extensions CLI, you need to extract the binary into `~/.docker/cli-plugins`.
2929

30-
For macOS:
30+
=== ":fontawesome-brands-apple: MacOS (intel)"
3131

32-
```console
33-
tar -xvzf desktop-extension-cli-darwin-amd64.tar.gz
34-
chmod +x docker-extension
35-
mkdir -p ~/.docker/cli-plugins
36-
mv docker-extension ~/.docker/cli-plugins
37-
```
32+
In a terminal, run:
3833

39-
!!! info
34+
```console
35+
tar -xvzf desktop-extension-cli-darwin-amd64.tar.gz
36+
chmod +x docker-extension
37+
mkdir -p ~/.docker/cli-plugins
38+
mv docker-extension ~/.docker/cli-plugins
39+
```
4040

41-
When running the Extensions CLI on macOS you'll see the message: _"docker-extension" cannot be opened because the developer cannot be verified."_ At the moment, the Extensions CLI is not signed by Docker (yet) and you'll need to trust the binary by going to `System Preferences` > `Security & Privacy` > (General tab) click on `Allow Anyway`.
41+
!!! info
4242

43-
For Windows:
43+
When running the Extensions CLI on macOS you'll see the message: _"docker-extension" cannot be opened because the developer cannot be verified."_ At the moment, the Extensions CLI is not signed by Docker (yet) and you'll need to trust the binary by going to `System Preferences` > `Security & Privacy` > (General tab) click on `Allow Anyway`.
4444

45-
```console
46-
tar -xvzf desktop-extension-cli-windows-amd64.tar.gz
47-
mkdir -p ~/.docker/cli-plugins
48-
mv docker-extension.exe ~/.docker/cli-plugins
49-
```
45+
=== ":fontawesome-brands-apple: MacOS (arm)"
5046

51-
You can now enable the extension feature by running `docker extension enable`
47+
In a terminal, run:
48+
49+
```console
50+
tar -xvzf desktop-extension-cli-darwin-arm64.tar.gz
51+
chmod +x docker-extension
52+
mkdir -p ~/.docker/cli-plugins
53+
mv docker-extension ~/.docker/cli-plugins
54+
```
55+
56+
!!! info
57+
58+
When running the Extensions CLI on macOS you'll see the message: _"docker-extension" cannot be opened because the developer cannot be verified."_ At the moment, the Extensions CLI is not signed by Docker (yet) and you'll need to trust the binary by going to `System Preferences` > `Security & Privacy` > (General tab) click on `Allow Anyway`.
59+
60+
=== ":fontawesome-brands-windows: Windows"
61+
62+
In a PowerShell terminal, run:
63+
64+
```powershell
65+
tar -xvzf desktop-extension-cli-windows-amd64.tar.gz
66+
mkdir -p ~/.docker/cli-plugins
67+
mv docker-extension.exe ~/.docker/cli-plugins
68+
```
69+
70+
=== ":fontawesome-brands-windows: :fontawesome-brands-linux: WSL2"
71+
72+
In a WSL2 terminal, run:
73+
74+
```console
75+
tar -xvzf desktop-extension-cli-linux-amd64.tar.gz
76+
mkdir -p ~/.docker/cli-plugins
77+
mv docker-extension ~/.docker/cli-plugins
78+
```
79+
80+
You can now enable the extension feature by running `docker extension enable`.

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ theme:
1818
- navigation.sections
1919
- toc.integrate
2020
- content.code.annotate
21+
- content.tabs.link
2122
extra:
2223
generator: false
2324
copyright: Copyright © 2021 Docker, Inc.
@@ -35,7 +36,8 @@ markdown_extensions:
3536
- pymdownx.emoji:
3637
emoji_index: !!python/name:materialx.emoji.twemoji
3738
emoji_generator: !!python/name:materialx.emoji.to_svg
38-
39+
- pymdownx.tabbed:
40+
alternate_style: true
3941
nav:
4042
- Introduction: index.md
4143
- Tutorials:

0 commit comments

Comments
 (0)