devcontainer-docker

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 12 Imported by: 0

README

devcontainer-docker

VSCode Remote Container で devcontainer の中で docker を使うときの volume の問題をなんとなく解決します。

devcontainer 内で docker を使うために /var/run/docker.sock をマウントしていると、--volume で指定したパスが devcontainer 内のパスではなくホストのパスとして解釈されます。

このツールは docker コマンドをラップし、volumes のパスを devcontainer 内のパスとして解釈させるものです。

Usage

バイナリをコピーして、本家の docker よりも優先されるように PATH を設定します。

RUN set -x \
    && mkdir -p /usr/local/devcontainer-tool/bin \
    && curl -fsSL -o /usr/local/devcontainer-tool/bin/docker https://github.com/thamaji/devcontainer-docker/releases/download/v1.0.3/docker \
    && chmod +x /usr/local/devcontainer-tool/bin/docker
ENV PATH=/usr/local/devcontainer-tool/bin:${PATH}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL