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

为啥在autodl上面docker就是用不了呀,人要麻了 #299

Open
kkkwjr opened this issue Nov 21, 2024 · 4 comments
Open

为啥在autodl上面docker就是用不了呀,人要麻了 #299

kkkwjr opened this issue Nov 21, 2024 · 4 comments

Comments

@kkkwjr
Copy link

kkkwjr commented Nov 21, 2024

root@autodl-container-8b78499521-bb244594:~/metahuman-stream# docker run --rm --env CANDIDATE=$CANDIDATE \

-p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5
objs/srs -c conf/rtc.conf
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

@kkkwjr
Copy link
Author

kkkwjr commented Nov 21, 2024

我这个在自己的服务器上都弄好了,但是用autodl中的社区镜像然后就用不了docker,很奇怪。
用了这个指令查看状态就会报下面的错,目前找了一些方法也没有解决。
root@autodl-container-8b78499521-bb244594:~/metahuman-stream# systemctl status docker
System has not been booted with systemd as init system (PID 1). Can't operate.

@lipku
Copy link
Owner

lipku commented Nov 21, 2024

srs不能跑在autodl上,端口限制了。
用ucloud那个镜像方便点

@kkkwjr
Copy link
Author

kkkwjr commented Nov 21, 2024

srs不能跑在autodl上,端口限制了。 用ucloud那个镜像方便点

太感谢了,但是我还有一个问题,就是为啥我在autodl上面使用docker就会报错呢,是不是因为autodl对docker做了啥限制之类的,root@autodl-container-8b78499521-bb244594:/etc# docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

@lipku
Copy link
Owner

lipku commented Nov 21, 2024

这个不太清楚。 docker里不能跑docker吧

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

2 participants