GithubHelp home page GithubHelp logo

Comments (4)

sarisia avatar sarisia commented on May 28, 2024 2

ログのご提供ありがとうございます!

ログから見ますと、コンテナのビルドと起動は正常に終了していますが、 /dev/null が使えないのが原因のようです。

2週間ほど前の Docker for Mac のリリースノートに、以下の修正が含まれていました:

Docker Desktop now ensures the permissions of /dev/null and other devices are correctly set to 0666 (rw-rw-rw-) inside --privileged containers. Fixes docker/for-mac#5527

https://docs.docker.com/docker-for-mac/release-notes/#docker-desktop-331

当 devcontainer は、コンテナ起動時に --privileged を渡しますので、このバグを踏んでいると考えられます。

よって、一度 Docker for Mac を上記リンクから最新版にアップデートしまして、現象が再現するかご確認いただけますでしょうか?

from mikanos-devcontainer.

toshi-oliver avatar toshi-oliver commented on May 28, 2024 1

早急にご対応いただき、ありがとうございま!
問題なくビルドできることを確認できました!

from mikanos-devcontainer.

sarisia avatar sarisia commented on May 28, 2024

Hi @toshi-oliver , thank you for raising the issue!

すみませんが、ログが少なすぎて原因がわかりません。もう少し前後数十行を含んだ詳細なログをご提供いただけますでしょうか?

from mikanos-devcontainer.

toshi-oliver avatar toshi-oliver commented on May 28, 2024

大変失礼いたしました。

[2021-04-29T20:32:52.698Z] [PID 84096] [1232 ms] Start: Check Docker is running
[2021-04-29T20:32:52.698Z] [PID 84096] [1232 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[2021-04-29T20:32:53.571Z] [PID 84096] [2105 ms] Server API version: 1.41
[2021-04-29T20:32:53.606Z] [PID 84096] [2140 ms] Start: Run: git rev-parse --show-cdup
[2021-04-29T20:32:53.624Z] [PID 84096] [2158 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/*********/projects/MikanOS/mikanos-devcontainer --filter label=vsch.quality=stable
[2021-04-29T20:32:53.917Z] [PID 84096] [2451 ms] Start: Run: docker inspect --type container 9f5f33442a8e
[2021-04-29T20:32:54.201Z] [PID 84096] [2735 ms] Start: Inspecting container
[2021-04-29T20:32:54.201Z] [PID 84096] [2735 ms] Start: Run: docker inspect --type container 9f5f33442a8eec1b058b0d12495fa6c00d10949c3dd8463154b824d3db579411
[2021-04-29T20:32:54.472Z] [PID 84096] [3006 ms] Start: Run in container: /bin/sh
[2021-04-29T20:32:54.488Z] [PID 84096] [3022 ms] Start: Run in container: uname -m
[2021-04-29T20:32:55.090Z] [PID 84096] [3624 ms] x86_64
[2021-04-29T20:32:55.091Z] [PID 84096] [3625 ms] 
[2021-04-29T20:32:55.091Z] [PID 84096] [3625 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2021-04-29T20:32:55.096Z] [PID 84096] [3630 ms] 
[2021-04-29T20:32:55.096Z] [PID 84096] [3630 ms] /bin/sh: 2: cannot create /dev/null: Permission denied
[2021-04-29T20:32:55.096Z] [PID 84096] [3630 ms] Exit code 2
[2021-04-29T20:32:55.097Z] [PID 84096] [3631 ms] Start: Run in container: cat /etc/passwd
[2021-04-29T20:32:55.108Z] [PID 84096] [3642 ms] Start: Setup shutdown monitor
[2021-04-29T20:32:55.110Z] [PID 84096] [3644 ms] Forking shutdown monitor: /Users/furukawatoshiaki/.vscode/extensions/ms-vscode-remote.remote-containers-0.166.1/dist/shutdown/shutdownMonitorProcess /var/folders/dd/f155h5r15xx6mp72xvdw3jqw0000gn/T/vscode-remote-containers-1ba547f4173aaffd2a304eda31d974ec073915ca.sock singleContainer Info /Users/furukawatoshiaki/Library/Application Support/Code/logs/20210429T172042/exthost5/ms-vscode-remote.remote-containers 1619728371466
[2021-04-29T20:32:55.121Z] [PID 84096] [3655 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[2021-04-29T20:32:55.205Z] [PID 84096] [3739 ms] 
[2021-04-29T20:32:55.206Z] [PID 84096] [3740 ms] 
[2021-04-29T20:32:55.211Z] [PID 84096] [3745 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2021-04-29T20:32:55.237Z] [PID 84096] [3771 ms] 
[2021-04-29T20:32:55.238Z] [PID 84096] [3771 ms] /bin/sh: 5: cannot create /dev/null: Permission denied
[2021-04-29T20:32:55.238Z] [PID 84096] [3772 ms] Exit code 2
[2021-04-29T20:32:55.240Z] [PID 84096] [3774 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[2021-04-29T20:32:55.251Z] [PID 84096] [3785 ms] 
[2021-04-29T20:32:55.255Z] [PID 84096] [3785 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory
[2021-04-29T20:32:55.255Z] [PID 84096] [3789 ms] Exit code 1
[2021-04-29T20:32:55.256Z] [PID 84096] [3790 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/3c4e3df9e89829dce27b7b5c24508306b151f30d
[2021-04-29T20:32:55.262Z] [PID 84096] [3796 ms] 
[2021-04-29T20:32:55.262Z] [PID 84096] [3796 ms] 
[2021-04-29T20:32:55.263Z] [PID 84096] [3797 ms] Start: Run in container: test -d /vscode/vscode-server/bin/x64/3c4e3df9e89829dce27b7b5c24508306b151f30d
[2021-04-29T20:32:55.266Z] [PID 84096] [3800 ms] 
[2021-04-29T20:32:55.266Z] [PID 84096] [3800 ms] 
[2021-04-29T20:32:55.268Z] [PID 84096] [3802 ms] Start: Run in container: /bin/sh
[2021-04-29T20:32:55.277Z] [PID 84096] [3811 ms] Start: Launching Remote-Containers helper.
[2021-04-29T20:32:55.278Z] [PID 84096] [3812 ms] Start: Run in container: touch '/vscode/vscode-server/bin/x64/3c4e3df9e89829dce27b7b5c24508306b151f30d'
[2021-04-29T20:32:55.278Z] [PID 84096] [3812 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[2021-04-29T20:32:55.335Z] [PID 84096] [3869 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-d682e44627b546fdd565e9d517ee991c1d699a7d.js' >/tmp/vscode-remote-containers-d682e44627b546fdd565e9d517ee991c1d699a7d.js
[2021-04-29T20:32:55.371Z] [PID 84096] [3905 ms] 
[2021-04-29T20:32:55.371Z] [PID 84096] [3905 ms] 
[2021-04-29T20:32:55.371Z] [PID 84096] [3905 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh
[2021-04-29T20:32:55.382Z] [PID 84096] [3916 ms] ssh not found
[2021-04-29T20:32:55.383Z] [PID 84096] [3917 ms] /bin/sh: 20: cannot create /dev/null: Permission denied
[2021-04-29T20:32:55.383Z] [PID 84096] [3917 ms] Exit code 1
[2021-04-29T20:32:55.383Z] [PID 84096] [3917 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-d682e44627b546fdd565e9d517ee991c1d699a7d.js' >/tmp/vscode-remote-containers-server-d682e44627b546fdd565e9d517ee991c1d699a7d.js
[2021-04-29T20:32:55.409Z] [PID 84096] [3943 ms] 
[2021-04-29T20:32:55.409Z] [PID 84096] [3943 ms] 
[2021-04-29T20:32:55.409Z] [PID 84096] [3943 ms] Start: Run in container: /home/vscode/.vscode-server/bin/3c4e3df9e89829dce27b7b5c24508306b151f30d/node /tmp/vscode-remote-containers-server-d682e44627b546fdd565e9d517ee991c1d699a7d.js
[2021-04-29T20:32:55.832Z] [PID 84096] [4366 ms] 
[2021-04-29T20:32:55.832Z] [PID 84096] [4366 ms] 
[2021-04-29T20:32:55.832Z] [PID 84096] [4366 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /home/vscode/.vscode-server/bin/3c4e3df9e89829dce27b7b5c24508306b151f30d/node /tmp/vscode-remote-containers-d682e44627b546fdd565e9d517ee991c1d699a7d.js $*; }; f' || true
[2021-04-29T20:32:55.901Z] [PID 84096] [4435 ms] 
[2021-04-29T20:32:55.901Z] [PID 84096] [4435 ms] 
[2021-04-29T20:32:55.901Z] [PID 84096] [4435 ms] Start: Preparing Extensions
[2021-04-29T20:32:55.901Z] [PID 84096] [4435 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2021-04-29T20:32:55.929Z] [PID 84096] [4463 ms] 
[2021-04-29T20:32:55.929Z] [PID 84096] [4463 ms] /bin/sh: 33: cannot create /dev/null: Permission denied
[2021-04-29T20:32:55.929Z] [PID 84096] [4463 ms] Exit code 2
[2021-04-29T20:32:55.932Z] [PID 84096] [4466 ms] Extensions cache, install extensions: MS-CEINTL.vscode-language-pack-ja
[2021-04-29T20:32:55.932Z] [PID 84096] [4466 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[2021-04-29T20:32:55.991Z] [PID 84096] [4525 ms] 
[2021-04-29T20:32:55.992Z] [PID 84096] [4526 ms] 
[2021-04-29T20:32:55.992Z] [PID 84096] [4526 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[2021-04-29T20:32:56.013Z] [PID 84096] [4547 ms] 
[2021-04-29T20:32:56.013Z] [PID 84096] [4547 ms] 
[2021-04-29T20:32:56.013Z] [PID 84096] [4547 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2021-04-29T20:32:56.316Z] [PID 84096] [4850 ms] Command in container failed: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
" " " ; echo ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo --- ; done ; readlink /proc/self/ns/mnt 2>/dev/null

from mikanos-devcontainer.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.