Tag: debian

docker不能启动容器… cpu.shares:没有这样的文件或目录

当我尝试运行泊坞窗图像时,出现以下错误: Error response from daemon: Cannot start container {id}: [8] System error: open /sys/fs/cgroup/cpu,cpuacct/init.scope/system.slice/docker-{id}.scope/cpu.shares: no such file or directory /sys/fs/cgroup/cpu,cpuacct/被挂载,但init.scope没有system.slice目录 docker版本: Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d OS/Arch […]

Docker –env-file – 在$ PATH中找不到可执行文件

我想用–env-file选项来运行我的–env-file容器的环境variables,就像–env-file doc中提到的一样: docker run命令 我已经尝试在我家dir /home/jw/data创build一个名为env.list的文件,内容如下: SSL_CERTIFICATE_PATH=/opt/onlyoffice/Data/certs/onlyoffice.crt SSL_KEY_PATH=/opt/onlyoffice/Data/certs/onlyoffice.key SSL_DHPARAM_PATH=/opt/onlyoffice/Data/certs/dhparam.pem 之后,我将目录/home/jw/data/到我的$PATH环境variables中: PATH=$PATH:/home/jw/data/; export PATH 在同一个shell中,我启动了docker容器,如下所示: sudo docker run -i -t -d –name onlyoffice-document-server onlyoffice/documentserver –env-file /home/jw/data/env.list debian env 我收到以下错误信息: Error response from daemon: Cannot start container 45ff897e0cfdc676f4f0bac98e027e2c567558a173a7f80c02ba6dc86482a176: [8] System error: exec: "–env-file": executable file not found in $PAT 我也尝试在root下设置$PATH并执行所提到的运行命令,同样的错误信息。 我错过了什么?

Raspbian docker:来自守护进程的错误响应:cgroups:此系统不支持的内存cgroup:未知

嗨,大家好我是新来的docker工人,我把我的PI3插件testing一些东西,我已经面临一个错误,我无法自己想出来。 所以我新安装raspbian和docker。 这是我的安装日志 然后我尝试经典的你好词testing 有日志

Docker Debian时间不正确

在我的Mac OS X上运行debian:jessie docker实例。debian dockerdate不正确。 例如 oot@134663e76fba:/opt/phabricator# date Mon Nov 24 15:51:24 UTC 2014 但在我的Mac上 $ date -u Tue Nov 25 16:36:11 UTC 2014 是什么原因造成的,什么是最好的解决办法?

如何在Debian上启用AUFS?

当我尝试通过以下方式安装docker: curl -sSL https://get.docker.com/ | sh 我收到消息: 警告:linux-image-extra-virtual软件包不支持当前内核。 我们没有AUFS的支持。 考虑为AUFS支持安装软件包linux-image-virtual kernel和linux-image-extra-virtual。 然而,Debian Jessie似乎都没有包: # apt-get install linux-image-virtual linux-image-extra-virtual Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package linux-image-virtual E: Unable to locate package linux-image-extra-virtual 我在这里错过了什么?

Docker安装debian openjdk-7-jre

我一直在试图在docker镜像中安装openjdk-7-jre。 但是,当我试图安装它,我得到了以下错误: E:无法获取http://security.debian.org/pool/updates/main/o/openjdk-7/openjdk-7-jre-headless_7u111-2.6.7-2~deb8u1_amd64.deb连接失败[IP:200.17 .202.197 80] 我已经花了很多时间来尝试这个。 有关更多详细信息,Dockerfile中的指令是: RUN apt-get update -qq && apt-get install -y -f xvfb wget RUN sed -i -re 's/([az]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list && \ apt-get update -qq && \ apt-get install –fix-missing -y -f openjdk-7-jre RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ dpkg –unpack google-chrome-stable_current_amd64.deb && \ apt-get install -f -y && \ apt-get clean […]

W:文件大小/var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-amd64_Packages.gz不是服务器报告的内容9101219 9117278

我正在安装mongo客户端,刚刚开始出现以下错误消息 W: Size of file /var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-amd64_Packages.gz is not what the server reported 9101219 9117278 这是为了响应我的Dockerfile的以下RUN命令。 RUN apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 && \ echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list && \ apt-get update && \ apt-get install -y mongodb-org-shell 我该如何解决这个问题?

在docker(Debian wheezy)中安装pure-ftpd,错误421

我试图设置一个简单的容器,我与docker运行纯ftpd。 但是在运行service pure-ftpd start我得到这个错误: Starting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -8 UTF-8 -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B 421 Unable to switch capabilities : Operation not permitted 这里是testing这个的Dockerfile: FROM debian:wheezy ENV DEBIAN_FRONTEND noninteractive RUN apt-get -y update RUN apt-get install -y pure-ftpd-common pure-ftpd CMD service pure-ftpd start && \ /bin/bash EXPOSE 21/tcp 在这个testing中,我使用的是debian wheezy,但是我也尝试过使用Ubuntu,所以我得到了同样的错误。 […]

Jenkins Docker容器无法访问docker.sock

我用docker-compose和这个configuration部署了标准的Jenkins Docker镜像: deployer: image: jenkins volumes: – "/mnt/jenkins:/var/jenkins_home" – "/var/run/docker.sock:/var/run/docker.sock" ports: – "2375:2375" – "8080:8080" – "50000:50000" 在阅读了大量的SO问题后,我testing了使用gpasswd -a ${USER} docker docker exec jenkins_deployer echo ${USER}将Root添加到docker用户组,并validationContainer中的用户是root用docker exec jenkins_deployer echo ${USER} 。 当我尝试添加Docker访问里面的“Docker URL = unix:///var/run/docker.sock”时,我得到错误消息“ org.newsclub.net.unix.AFUNIXSocketException:权限被拒绝(套接字: /run/docker.sock) “ 我怎样才能让jenkins访问docker.sock来自动部署Docker容器?

将可信的CA添加到Debian / Ubuntu映像

我正在尝试在https://askubuntu.com/a/94861/88763或http://blog.bigon.be/2014/03中描述的在Debian / nodejs容器中将CA证书部署为受信任的根证书/ 22 /添加一个新的证书到证书存储在debian /但它没有明显的原因失败。 我的Dockerfile: FROM debian:jessie # or buildpack-deps:jessie or node:5 RUN apt-get update -y && \ apt-get install ca-certificates netcat strace wget -y ADD rootCa.pem /usr/local/share/ca-certificates/rootCa.crt RUN update-ca-certificates –verbose CMD ["netcat", "-l", "12345"] # just to keep the container running 当build立容器时,它实际上告诉我一个证书被添加( 1 added, 0 removed; done.但是,当我尝试使用wget的根CA时,找不到: $ sudo docker exec -it […]