Tag: Linux容器

容器创build错误启动容器进程导致“process_linux.go:339

我用docker安装了ldap,现在我想用docker安装phpkdapadmin,但是当我尝试创build容器时,像这样: sudo docker run –name phpldapadmin -p 2226:443 –volume /ceph/docker/phpldapadmin/config:/container/service/phpldapadmin/assets/config/config.php –hostname phpldapadmin-service –link openldap:ldap-host –env PHPLDAPADMIN_LDAP_HOSTS=ldap-host –detach osixia/phpldapadmin:0.7.0 我收到以下错误信息: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused \"rootfs_linux.go:57: mounting \\\"/ceph/docker/phpldapadmin/config\\\" to rootfs \\\"/var/lib/docker/overlay2/71bdf95293b88ca0057943d91109d7afa51cc6388592000c8f3b520692249187/merged\\\" at \\\"/var/lib/docker/overlay2/71bdf95293b88ca0057943d91109d7afa51cc6388592000c8f3b520692249187/merged/container/service/phpldapadmin/assets/config/config.php\\\" caused \\\"not a directory\\\"\""

在Docker容器中通过curl(smpt)发送电子邮件

我可以在本地使用以下脚本接收电子邮件 rtmp_url="smtp://smtp.xxx.com:25" rtmp_from="noreply@xxx.com" rtmp_to="receiver-email@xxx.com" file_upload="mail.txt" echo "From: $rtmp_from To: $rtmp_to Subject: example of mail Cc: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=\"MULTIPART-MIXED-BOUNDARY\" –MULTIPART-MIXED-BOUNDARY Content-Type: multipart/alternative; boundary=\"MULTIPART-ALTERNATIVE-BOUNDARY\" –MULTIPART-ALTERNATIVE-BOUNDARY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline This is an email example. This is text/plain content inside the mail. –MULTIPART-ALTERNATIVE-BOUNDARY– –MULTIPART-MIXED-BOUNDARY Content-Type: application/octet-stream; Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=\"logs.txt\"" > ./mail.txt cat ./mail.txt […]

Linux curl post请求和错误417,但sudo成功?

我的服务部署在docker中,暴露的nginx端口是18082;服务端口是38087,我试了两次。 而我使用命令 curl -i -X POST -H'content-type:text / json'-d @ post.json \ http://127.0.0.1:18082/youtu/openliveapi/livedetectfour 返回417 HTTP/1.1 417 Expectation failed Server: squid/2.7.STABLE9 Date: Tue, 15 Aug 2017 11:57:04 GMT Content-Type: text/html Content-Length: 1436 X-Squid-Error: ERR_INVALID_REQ 0 X-Cache: MISS from SK-SQUIDDEV-118 X-Cache-Lookup: NONE from SK-SQUIDDEV-118:8080 Connection: close 但是当我在前面添加sudo时,它会返回成功。 HTTP / 1.1 100继续HTTP / 1.1 200 OK服务器:openresty / 1.9.15.1 […]

在数字海洋上configurationDocker Swarm的防火墙设置

我怎样才能configuration我的数字海洋箱有正确的防火墙设置? 我遵循了Digital Ocean和Docker容器一起工作的官方指南 。 我有3个docker节点,我可以看到,当我docker-machine ls 。 我已经创build了一个主docker节点,并作为工作者join了其他docker节点。 但是,如果我尝试访问该节点的URL,连接挂起。 这个设置是在本地进行的。 这是我用来制作的docker-compose。 version: "3" services: api: image: "api" command: rails server -b "0.0.0.0" -e production depends_on: – db – redis deploy: replicas: 3 resources: cpus: "0.1" memory: 50M restart_policy: condition: on-failure env_file: – .env-prod networks: – apinet ports: – "3000:3000" client: image: "client" depends_on: – api […]

kubelet失败,kubelet cgroup驱动程序:“cgroupfs”与docker cgroup驱动程序不同:“systemd”

cgroup driveconfiguration在/etc/systemd/system/kubelet.service.d/10-kubeadm.conf中是正确的 环境= “KUBELET_CGROUP_ARGS = – cgroup的驱动程序= systemd” 我也用cli检查了Environment $ systemctl show –property =环境kubelet | cat Environment = KUBELET_KUBECONFIG_ARGS = – kubeconfig = / etc / kubernetes / kubelet.conf \ x20 – require-kubeconfig = true KUBELET_SYSTEM_PODS_ARGS = – pod-manifest-path = / etc / kubernetes / manifests \ x20 – allow-privileged = true KUBELET_NETWORK_ARGS = – […]

“rootfs_linux.go:53:安装

升级我的Linux(卡利分配)后,我无法启动我的docker项目:获取此错误消息: 处理程序为POST /v1.24/containers/38a049b5e8da8a720250856ce0e09a4c5a86cf8f1679da05aa79b787869df309 /开始返回错误:无效的标头字段值“oci运行时错误:container_linux.go:247:启动容器进程导致\”process_linux.go:359:容器init导致\\“rootfs_linux .go:53:将\\\“cgroup \\\\”挂载到rootfs \\\\“/ var / lib / docker / devicemapper / mnt / 8c26d2f3ae0b4d69b4375705d3c5b03386e64c9cec69dd012e972f2055acf820 / rootfs \\\\ at \\\\”/ sys / fs / cgroup \\\\“导致\\\\”没有子系统mount \\\\“\\”\“\ n” 这在我的升级之前工作,但在升级(apt-get升级)后失败。 有任何想法吗? Linux: Linux kali 4.6.0-kali1-amd64#1 SMP Debian 4.6.4-1kali1(2016-07-21)x86_64 GNU / Linux Docker: Docker版本17.03.0-ce,build 60ccb2265 Docker撰写: docker-compose版本1.11.2,build dfed245

在Linux docker容器中远程debugging.NET Core应用程序

我正在尝试远程debugging一个.net核心Web API应用程序在RHEL linux机器中的docker容器中运行。 我给连接types为SSH。 当我从Visual Studio 2017连接debugging器时,出现以下错误。 任何帮助表示赞赏。

重新启动docker服务的问题

在我的chromebook上运行Ubuntu Trusty(armhf),我一直在尝试运行 sudo service docker restart 一旦这样做,它报告回来: * Docker is managed via upstart, try using service docker 所以我然后尝试 service docker restart 它说 * Docker must be run as root 在这一点上,我不知道我是否错过了一些东西,或者如果docker被错误地安装了? 这是我的docker info : Containers: 1 Running: 0 Paused: 0 Stopped: 1 Images: 1 Server Version: 17.06.0-ce Storage Driver: vfs Logging Driver: json-file Cgroup Driver: cgroupfs […]

docker容器中的进程的PID当通过&&运行命令时

我写了一个DOCKERFILE并使用CMD ["/bin/bash", "-c", "script1.sh && script2.sh"来启动容器。 运行一个容器之后,我发现PID 1的进程是CMD列bash的进程,而script2.sh是它的subprocess。 FS UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 1 0 0 80 0 – 4491 wait ? 00:00:00 bash 0 S 0 8 1 0 80 0 – 4494 wait ? 00:00:00 script2 0 S 0 10 8 99 […]

我有一个docker图像,只在亚马逊linux上失败

我在本地机器上创build了一个Docker镜像,但是当我每次尝试运行时都上传到远程机器(Amazon Linux)时,它会返回standard_init_linux.go:178: exec user process caused "no such file or directory"我不知道问题出在哪里,有人可以帮我吗? 这是我的dockerfile: # Use an official Golang runtime as a parent image FROM golang:1.8-alpine # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app ADD . /app # Run weatherai when the container launches ENTRYPOINT […]