Tag: 分机

Docker exec rpc错误代码= 13 desc =无效的头字段值“oci运行时错误:exec失败:无法执行已运行和停止的容器\ n”

我有rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: cannot exec a container that has run and stopped\n"当我做docker exec -it containerID bash但容器已启动并应答到http请求。 在同一台计算机上(linux / centos7),另外两个容器已经启动并运行良好。

docker + elasticsearch:创build日志文件时访问被拒绝

我试图在docker容器中运行elasticsearch(5.3.0),如下所示: docker run –network=host –publish 9203:9200 –publish 9300:9300 –env ES_JAVA_OPTS="-Xms4g -Xmx4g" –env "bootstrap.memory_lock=true" –cap-add=IPC_LOCK –ulimit memlock=-1:-1 –ulimit nofile=65536:65536 –volume /etc/elasticsearch/ip-spotlight.elasticsearch.RR6.yml:/usr/share/elasticsearch/config/elasticsearch.yml –volume /usr/ip-spotlight/elasticsearch/RR6:/usr/share/elasticsearch/data –volume /var/log/elasticsearch:/usr/share/elasticsearch/logs –label app="ip-spotlight" –label service="elasticsearch" –label func="RR6" –name "ip-spotlight.elasticsearch.RR6" docker.elastic.co/elasticsearch/elasticsearch:5.3.2 SElinux被禁用(为了完全确定): # getenforce Disabled 为了完全确定这里是/var/log/elasticsearch的权限: # ls -salt /var/log/elasticsearch/ total 8 4 drwxrwxrwx. 2 elasticsearch elasticsearch 4096 May 4 15:12 . # […]

docker运行容器发生错误时映射容器的端口与机器

当我使用docker启动容器映射端口与机器发生错误 命令: docker run -p 4000:81 fiddddddd /usr/bin/docker-current: Error response from daemon: driver failed programming external connectivity on endpoint big_sinoussi (5d38b7a9bc6c58c011b638193244aa28892f180afd9fdf2f27356a17a899f513): iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 4000 -j DNAT –to-destination 172.17.0.2:81 ! -i docker0: iptables: No chain/target/match by that name. 我在centos系统上,docker版本: Client: Version: 1.12.6 API version: 1.24 […]

Cent OS 6上的Docker无法在切换到不同的容器目录后build立容器

因为我们想在集群中的不同节点之间共享docker镜像,我们在/etc/sysconfig/docker文件中编辑了docker demon选项 other_args=" -g /shared_filesystem/docker -p /node_local_filesystem/var/run/docker.pid" 环境 docker version 1.7.1 Cent OS 6.8 我有一个docker文件构build基于debian:stretch的容器。 在成功拉出映像之后,第一次RUN apt-get update调用会导致一个错误: Temporary failure resolving 'deb.debian.org' 奇怪的是,如果我们回到上面的/etc/sysconfig/docker默认的docker选项,错误不会发生。 任何人都可以帮忙吗? 提前谢谢了。

docker上没有互联网,rpm包依赖问题的centos

我遇到了一个问题,从一个没有互联网访问的服务器上安装docker-ce。 这是我的Linux |的版本 CentOS的释放,7-2.1511.el7.centos.2.10.x86_64 Virtualization: vmware Operating system: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327.el7.x86_64 Architecture: x86-64 我试图按照这里设置的说明,但因为箱子没有互联网我不能做的YUM安装。 所以我用rpm -ivh来做。 到目前为止依赖性错误后依赖性错误。 我试过这三个版本的docker,他们都给出了一个依赖的错误。 -rw-r–r–. 1 root root 19521288 Nov 8 00:52 docker-ce-17.03.0.ce-1.el7.centos.x86_64.rpm -rw-r–r–. 1 root root 19529520 Nov 8 00:02 docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm -rw-r–r–. 1 root root 29108 Nov 8 00:53 docker-ce-selinux-17.03.0.ce-1.el7.centos.noarch.rpm -rw-r–r–. 1 […]

在CentOS 7上杀死后,无法启动Docker服务

这样开始docker工人: # service docker start 要阻止它: # service docker stop 不能。 然后kill -9 …所有正在运行的进程。 重新开始: # service docker start 不能: Redirecting to /bin/systemctl start docker.service Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. journalctl -xe日志: — The result is failed. 7月 11 […]

SELinux不支持覆盖graphics驱动程序

when i installed docker then i run `service docker start`i had this msg “docker.service的作业失败,因为控制进程退出了错误代码。有关详细信息,请参阅”systemctl status docker.service“和”journalctl -xe“。 我运行journalctl -xe我有这些消息 8月 02 20:42:11 centos-master systemd[1]: Unit docker-storage-setup.service entered failed state. 8月 02 20:42:11 centos-master systemd[1]: docker-storage-setup.service failed. 8月 02 20:42:11 centos-master systemd[1]: Starting Docker Application Container Engine… — Subject: Unit docker.service has begun start-up — Defined-By: […]

作业docker.service失败

我已经多次重新安装了docker,并且在这里也尝试了其他类似的post。 我不明白为什么我不能启动docker工人。 (CentOs 7) [wayne@localhost sysconfig]$ sudo systemctl start docker Job for docker.service failed because the control process `exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. [wayne@localhost sysconfig]$ sudo systemctl status docker.service docker.service – Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: start-limit) since […]

在datapower docker实例中写入内存错误

我是docker工人。 经过相当长的时间,我可以安装docker到Centos。 然后我安装了一个数据电源docker。 但是,虽然我保存configuration使用GUI版本的datapower我得到一些内存错误。 正如我面临这个错误,我认为有人可能已经面对这个错误。 以下是我对docker工人的日志。 idg(config)# 20170810T234610.495Z [0x8100003f][mgmt][notice] domain(default): tid(319): Domain configuration has been modified. 20170810T234610.496Z [0x00350014][mgmt][notice] web-mgmt(WebGUI-Settings): tid(303): Operational state up 20170810T234745.935Z [0x806000bb][ssl][error] ssl-server(webgui-ssl): tid(179)[10.204.48.161] gtid(65622cce598cf0a1000000b3): error writing to connection: system error (32) 20170810T234921.041Z [0x80400006][system][error] : tid(8191): Cannot create a temporary file. 20170810T234921.041Z [0x81000010][system][critic] : tid(8191): write mem: Cannot create temp file 20170810T234921.041Z […]

MySQL 5.7不能在CentOS7上允许docker IP访问

我已经在CentOS 7.1上安装了Mysql5.7和docker服务。 把mysql和命令mysql -u root连接起来就可以了。 但是当我尝试使用mysql -u root -h 172.17.0.1 ,连接失败,其中172.17.0.1是本地docker0的IP地址。 [root@test1 workspace]# mysql -u root -h 172.17.0.1 ERROR 1130 (HY000): Host 'test1.novalocal' is not allowed to connect to this MySQL server 我test1.novalocal了原因,并试图授予访问test1.novalocal但没有幸运。 mysql> grant all on *.* to root@'test1.novalocal' with grant option; ERROR 1133 (42000): Can't find any matching row in the user table […]