绑定指定的CPU错误简析
解决办法
虚拟机新添加cpu后,docker容器不能识别,分配核数时将会报错,这是需要重启虚拟机: init 6
Error response from daemon: 0CI runtime create failed: container_ linux.go:367: starting container process caused
process_ linux . g0:340: applying cgroup configuration for process caused: failed to Write "1,3": write /sys/fs/cgroup/ cpuset/docker/e4d199f ad942ed91f2b10f5df4c3bc5978d0bb9eeda8aac05c4304c29e280396/cpuset .cpus:permission denied: unknown
Error:failed to start containers:archer
重启虚拟机后在docker当中yum命令不能使用
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
e of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2.Reconfigure the baseurl/etc. for the repository, to point to a working
stream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3.Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
#Cannot find a valid baseurl for repo: base/7/x86_64
解决方法
systemctl restart docker
安装docker-compose报错
docker-compose -f docker-compose.yml up -d
Creating network “compose_nginx_lnmp” with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-4553018044fd -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))
解决方法
systemctl restart docker