mirror of https://github.com/docker/docs.git
Merge pull request #19836 from dvdksn/fix-buildkit-windows-
fix: copy codeblocks for powershell
This commit is contained in:
commit
59d8cc76c8
|
@ -180,15 +180,10 @@ We appreciate any feedback you submit by [opening an issue here](https://github.
|
|||
$Env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + `
|
||||
[System.Environment]::GetEnvironmentVariable("Path","User")
|
||||
```
|
||||
6. Start `buildkitd.exe`.
|
||||
6. Start the BuildKit daemon.
|
||||
|
||||
```console
|
||||
> buildkitd.exe
|
||||
time="2024-02-26T10:42:16+03:00" level=warning msg="using null network as the default"
|
||||
time="2024-02-26T10:42:16+03:00" level=info msg="found worker \"zcy8j5dyjn3gztjv6gv9kn037\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:c30661c1-5115-45de-9277-a6386185a283 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:[deducted] org.mobyproject.buildkit.worker.network: org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:windows], platforms=[windows/amd64]"
|
||||
time="2024-02-26T10:42:16+03:00" level=info msg="found 1 workers, default=\"zcy8j5dyjn3gztjv6gv9kn037\""
|
||||
time="2024-02-26T10:42:16+03:00" level=warning msg="currently, only the default worker can be used."
|
||||
time="2024-02-26T10:42:16+03:00" level=info msg="running server on //./pipe/buildkitd"
|
||||
```
|
||||
|
||||
7. In another terminal with administrator privileges, create a remote builder that uses the local BuildKit daemon.
|
||||
|
@ -206,6 +201,12 @@ We appreciate any feedback you submit by [opening an issue here](https://github.
|
|||
|
||||
```console
|
||||
> docker buildx inspect
|
||||
```
|
||||
|
||||
The output should indicate that the builder platform is Windows,
|
||||
and that the endpoint of the builder is a named pipe.
|
||||
|
||||
```text
|
||||
Name: buildkit-exp
|
||||
Driver: remote
|
||||
Last Activity: 2024-04-15 17:51:58 +0000 UTC
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{ end }}
|
||||
<div class="group relative">
|
||||
<button x-data="{ code: '{{encoding.Base64Encode .Inner}}', copying: false }"
|
||||
class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="Copy" @click="window.navigator.clipboard.writeText(atob(code).replaceAll(/^\$\s*/gm, ''));
|
||||
class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="copy" @click="window.navigator.clipboard.writetext(atob(code).replaceall(/^[\$>]\s+/gm, ''));
|
||||
copying = true;
|
||||
setTimeout(() => copying = false, 2000);">
|
||||
<span :class="{ 'group-hover:block' : !copying }" class="icon-svg hidden">{{ partialCached "icon" "content_copy" "content_copy" }}</span>
|
||||
|
|
Loading…
Reference in New Issue