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: invalid character 'c' looking for beginning of value. #16

Open
Musickiller opened this issue Sep 5, 2022 · 9 comments
Open

Comments

@Musickiller
Copy link

Setup:
Windows 10
Docker (last)

full log (not sure how to make a spoiler):

λ docker run -d -p 5000:5000 --gpus=all r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef
Unable to find image 'r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef' locally
r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef: Pulling from stability-ai/stable-diffusion
d5fd17ec1767: Already exists
d7c6ec6e1327: Already exists
943d01f4776a: Already exists
23025e0ea7d2: Already exists
8acc1c2b01b0: Already exists
894d0771aab5: Extracting [=============> ] 312MB/1.116GB
8451e5a9bff2: Download complete
a6b5bd0a44ab: Downloading [===========================================> ] 1.244GB/1.441GB
364573d3ec98: Download complete
75b4e35cee13: Downloading [=========================================> ] 1.231GB/1.478GB
7b599a9816a8: Download complete
e89d9461ad8d: Download complete
2bb4a5f9dfe2: Downloading [===========================> ] 40.47MB/74.18MB
4c73be41da4a: Waiting
24f6a06e94e1: Pulling fs layer
07a924b46151: Pulling fs layer
26d1e862c567: Waiting
71ac7d9aaea3: Waiting
docker: invalid character 'c' looking for beginning of value.
See 'docker run --help'.

@Musickiller
Copy link
Author

If any other logs needed, please tell where to find them =)

@Musickiller
Copy link
Author

Musickiller commented Sep 6, 2022

Seems like it's my local issue:
https://stackoverflow.com/questions/46843711/docker-error-grabbing-logs-invalid-character-x00-looking-for-beginning-of-v

delete %USERPROFILE%\.docker\contexts folder.

@Musickiller
Copy link
Author

in a few tries, I've succeeded finally, with this messages at the end:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: WSL environment detected but no adapters were found: unknown.

@Musickiller
Copy link
Author

if switching from WSL, the error is slightly different:

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.

Still strange, since I have AMD videocard..

Probably should open another issue for this "legacy mode"?

@elcolie
Copy link

elcolie commented Dec 8, 2022

Me too. I also got this problem.

Version

4.15.0 (93002)

Engine: 20.10.21

Compose: v2.13.0

Credential Helper: v0.7.0

Kubernetes: v1.25.2

Snyk: v1.1054.0

OSX 12.6

@hanbing5210
Copy link

you can try restart docker ,maybe it will reslove.

@Musickiller
Copy link
Author

I did try restarting the docker then. I don't have it now though

@zeke
Copy link
Member

zeke commented Jan 9, 2023

It looks like you're using an older version of Stable Diffusion. I'm not sure if it will help, but you might try using a version SHA from a newer release?

https://replicate.com/stability-ai/stable-diffusion/versions

@eademir
Copy link

eademir commented Mar 6, 2023

I am having same situation in MacOS, now. I try to build a rust app in a docker container and it gives me that error. Once I attempt second time it gives Error response from daemon: Bad response from Docker engine error. I restarted it several times but there is no good. Version: Docker Desktop 4.17.0 (99724).

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

5 participants