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

Unable to find user computeruse: no matching entries in passwd file. #194

Open
immoldov opened this issue Nov 25, 2024 · 1 comment
Open

Comments

@immoldov
Copy link

immoldov commented Nov 25, 2024

% docker run
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
-v $HOME/.anthropic:/home/computeruse/.anthropic
-p 5900:5900
-p 8501:8501
-p 6080:6080
-p 8080:8080
-it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest
docker: Error response from daemon: unable to find user computeruse: no matching entries in passwd file.

Docker: Version 4.36.0 (175267)
running on Mac

I tried to fix this by creating an anthropic-fixed image. After quite a few iterations I have this (not sure anymore how I got this far but it was one problem at the time as it seems the image is super minimal )
Dockerfile:

FROM ubuntu:22.04 AS builder
RUN apt-get update && apt-get install -y x11-xkb-utils xserver-xorg-core xfonts-base xkb-data &&
echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd &&
echo "root:x:0:" > /etc/group &&
echo "computeruse:x:1000:1000::/home/computeruse:/bin/bash" >> /etc/passwd &&
echo "computeruse:x:1000:" >> /etc/group &&
mkdir -p /home/computeruse &&
chown -R 1000:1000 /home/computeruse

FROM ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest

COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY --from=builder /home/computeruse /home/computeruse
COPY --from=builder /usr/share/X11 /usr/share/X11
COPY --from=builder /usr/lib/xorg /usr/lib/xorg

ENV HOME=/home/computeruse
USERNAME=computeruse

USER 1000:1000

WORKDIR /home/computeruse

And now I am getting this:
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-CRITICAL **: 00:30:44.158: g_array_free: assertion 'array' failed
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): libmutter-WARNING **: 00:30:44.158: Could not create database of Wacom devices, expect tablets to misbehave
2024-11-24 16:31:14
2024-11-24 16:31:14 (mutter:63): GLib-GIO-ERROR **: 00:30:44.161: No GSettings schemas are installed on the system
2024-11-24 16:31:14 Missing DeviceMatch= line in '/usr/share/libwacom/

@immoldov
Copy link
Author

this worked
git clone https://github.com/anthropics/anthropic-quickstarts.git
cd anthropic-quickstarts/computer-use-demo
docker build -t computer-use-demo:local .
docker run
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
-v $HOME/.anthropic:/home/computeruse/.anthropic
-p 5900:5900
-p 8501:8501
-p 6080:6080
-p 8080:8080
-it computer-use-demo:local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant