docker启动报错
Cannot start service redis: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\""
- 出错服务器:centos7.3
原因分析
- 这个版本不支持以
./
为开始的cmd(dockerfile中配置)调用。
解决方案
安装docker
http://xinyeshuaiqi.cn/2019/03/29/aliyun/
安装
# step 1: 安装必要的一些系统工具
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2: 添加软件源信息
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3: 更新并安装Docker-CE
sudo yum makecache fast
sudo yum -y install docker-ce
# Step 4: 开启Docker服务
sudo service docker start
卸载
[root@xinyeshuaiqi ~]# yum list installed | grep docker
docker-client.x86_64 2:1.13.1-94.gitb2f74b2.el7.centos @extras
docker-common.x86_64 2:1.13.1-94.gitb2f74b2.el7.centos @extras
[root@xinyeshuaiqi ~]# sudo yum -y remove docker-client.x86_64
[root@xinyeshuaiqi ~]# sudo yum -y remove docker-common.x86_64
[root@xinyeshuaiqi ~]# rm -rf /etc/systemd/system/docker.service.d
[root@xinyeshuaiqi ~]# rm -rf /var/lib/docker
[root@xinyeshuaiqi ~]# rm -rf /var/run/docker
其他报错
/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22)
解决方案:
https://blog.csdn.net/m0_37814112/article/details/80591473