已有环境介绍

image.png

需要下载较大文件

配置docker

https://docs.docker.com/engine/install/ubuntu/

若遇到如下报错:

(base) root@development-6135-dk2iy3d1-68776d8bd4-fgvpc:~# sudo systemctl start docker
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

当前启动参数

/init/init.sh

cat > /etc/supervisord.conf << 'EOF'
[supervisord]
nodaemon=true

[program:sshd]
command=/usr/sbin/sshd -D
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr

[program:code-server]
command=/usr/bin/code-server --bind-addr 0.0.0.0:62661
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr

[program:jupyterlab]
command=/opt/miniconda3/bin/jupyter-lab --ip=0.0.0.0 --port=8888 --allow-root --no-browser
directory=/root
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
environment=HOME="/root",PATH="/opt/miniconda3/bin:%(ENV_PATH)s"

[program:dockerd]
command=/usr/bin/dockerd --storage-driver=vfs --iptables=false --ip6tables=false --bridge=none --data-root=/tmp/docker
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
user=root
startsecs=10

EOF

exec supervisord -c /etc/supervisord.conf

发现环境需要运行容器,而共绩云主机本身采用容器形式,故而未能成功配置docker。

教训:转向虚拟机或者裸金属算力。