Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Image not working due to tfjs-node? #9186

Closed
tamaina opened this issue Nov 16, 2022 · 7 comments · Fixed by #9560
Closed

Docker Image not working due to tfjs-node? #9186

tamaina opened this issue Nov 16, 2022 · 7 comments · Fixed by #9560
Labels
⚠️bug? This might be a bug docker Pull requests that update Docker code

Comments

@tamaina
Copy link
Contributor

tamaina commented Nov 16, 2022

bash-installでdockerイメージ(misskey/misskey:develop)をdocker pullしようとしたらコケた

docker: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: lchown /misskey/packages/backend/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node: invalid argument.
See 'docker run --help'.

📌 Environment

Oracle Cloud Free Tier VM.Standard.E2.1.Micro
Ubuntu 22.04.1

@tamaina tamaina added ⚠️bug? This might be a bug docker Pull requests that update Docker code labels Nov 16, 2022
@tamaina
Copy link
Contributor Author

tamaina commented Jan 8, 2023

別のマシン(Core i3-7020U RAM4GB)でも発生した

@ikuradon
Copy link
Contributor

ikuradon commented Jan 14, 2023

もしかして:Dockerがrootlessモードで動いている?

Edit: bash-installの中身見たらrootlessで動いているわね…

@ikuradon
Copy link
Contributor

多分これと同じmoby/moby#43576

@ikuradon
Copy link
Contributor

UID/GID見たら

root@misskey-67cb57f6d6-2psx7:/misskey# ls -lan packages/backend/node_modules/\@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node
-rwxr-xr-x 1 723871 89939 87192 Jan 14 07:49 packages/backend/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node

になっててそりゃあふれるよね…になっています
参考:

root@misskey-67cb57f6d6-2psx7:/misskey# ls -lan .yarnrc.yml
-rw-r--r-- 1 0 0 925 Jan 14 07:50 .yarnrc.yml

@ikuradon
Copy link
Contributor

Docker内でもrootで動かす必要性は無いはず…はず?なのでユーザーを作ってそれで動かせば回避できそう

@ikuradon
Copy link
Contributor

@tamaina 手元のrootless dockerだと動いたっぽいけどどうでしょう

@tamaina
Copy link
Contributor Author

tamaina commented Jan 15, 2023

@ikuradon 動きました!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug docker Pull requests that update Docker code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants