docker启动报错 Cannot start service redis: oci runtime error: container_linux.go:247: starting containe

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

原因分析

  1. 这个版本不支持以./为开始的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

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页