镜像装盒子内存没问题,但是将地址改到U盘就提示错误,请问是哪一步搞错了,已经复位盒子系统,格式化U盘,还是不行。请大神指点,谢谢。
root@hi3798mv100:/mnt/sda1# systemctl stop docker
Warning: Stopping docker.service, but it can still be activated by:
docker.socket
root@hi3798mv100:/mnt/sda1# cat /lib/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service containerd.service
Wants=network-online.target
Requires=docker.socket
Wants=containerd.service
[Service]
Type=notify
the default is not to use systemd for cgroups because the delegate issues still
exists and systemd currently does not support the cgroup feature set required
for containers run by docker
ExecStart=/usr/bin/dockerd --graph="/mnt/sda1/docker" -H fd:// --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.
Both the old, and new location are accepted by systemd 229 and up, so using the old location
to make them work for either version of systemd.
StartLimitBurst=3
Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.
Both the old, and new name are accepted by systemd 230 and up, so using the old name to make
this option work for either version of systemd.
StartLimitInterval=60s
Having non-zero Limit*s causes performance problems due to accounting overhead
in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Comment TasksMax if your systemd version does not support it.
Only systemd 226 and above support this option.
TasksMax=infinity
set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
kill only the docker process, not all processes in the cgroup
KillMode=process
OOMScoreAdjust=-500
[Install]
WantedBy=multi-user.target
root@hi3798mv100:/mnt/sda1# mkdir -p /mnt/sda1/docker-abc
root@hi3798mv100:/mnt/sda1# chmod 777 -R /mnt/sda1/docker-abc
root@hi3798mv100:/mnt/sda1# vi /lib/systemd/system/docker.service
root@hi3798mv100:/mnt/sda1# systemctl daemon-reload
root@hi3798mv100:/mnt/sda1# systemctl start docker
root@hi3798mv100:/mnt/sda1# docker run --restart always -p 9000:8081 -d -v /var/run/docker.sock:/var/run/docker.sock -v /etc/docker/:/etc/docker/ wangbinxingkong/fast:latest
Unable to find image 'wangbinxingkong/fast:latest' locally
latest: Pulling from wangbinxingkong/fast
4ee0caa23b36: Extracting [==================================================>] 2.429MB/2.429MB
8d798d1007fa: Download complete
b81da82f3167: Download complete
b76b50a26957: Download complete
a57e1154ebc5: Download complete
docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: symlink /bin/busybox /bin/arch: operation not permitted.
See 'docker run --help'.
root@hi3798mv100:/mnt/sda1# ll
total 20
drwxrwxrwx 5 root root 4096 May 26 15:20 ./
drwxr-xr-x 4 root root 4096 May 26 14:46 ../
drwxrwxrwx 13 root root 4096 May 26 15:06 docker/
drwxrwxrwx 13 root root 4096 May 26 15:21 docker-abc/
drwxrwxrwx 10 root root 4096 May 26 15:17 html/
root@hi3798mv100:/mnt/sda1#