Tag: Ubuntu

Docker无法打开容器启动后连接的usb设备(ubuntu)

我已经search,看到人们之前有过这个问题,但通常的 – –privileged -v /dev:/dev解决scheme没有为我工作。 我在Ubuntu机器上工作,我的容器也是Ubuntu 16.04。 如果在运行容器后连接USB设备,虽然它显示在lsusb中,但我的应用程序无法打开USB设备。 我已经注意到,在这篇文章中: Docker – 任何方式来访问主机的USB或串行设备? (和其他职位)的 – 特权-v / dev:/ dev已经解决了这个问题,但它没有为我工作。 任何人都知道我的图像/容器或其他问题可能会丢失什么? 谢谢

安装docker时出错

按照说明安装docker: https://docs.docker.com/engine/installation/linux/docker-ee/ubuntu/#install-using-the-repository 我有错误: E: Unable to locate package docker-ee 更新包的索引时返回错误: W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/trusty/InRelease Unable to find expected entry 'stable-17.03/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file) 这个错误是什么? PS lsb_release Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty uname -a Linux dev-Cherepanov 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 […]

Dockerd –graph / – data-root似乎不能与systemd一起使用

添加完后: -g /vagrant/lib/docker 我尝试重新启动dockerd时遇到这些错误: ● docker.service – Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-08-03 21:20:50 UTC; 1s ago Docs: https://docs.docker.com Process: 6495 ExecStart=/usr/bin/dockerd -g /vagrant/lib/docker -H fd:// (code=exited, status=1/FAILURE) Main PID: 6495 (code=exited, status=1/FAILURE) CPU: 61ms Aug 03 21:20:50 badger systemd[1]: docker.service: Main process […]

Docker-java API在windows 10中的Eclipse中连接virtualbox ubuntu docker

我在Windows 10上安装了virtualbox,并为docker主机创build了一个Ubuntu实例。 然后在Ubuntu上安装docker。 我想使用docker-java API(我使用docker-java 3.0.12)连接docker,代码如下: DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder() .withDockerHost("tcp://192.168.5.31:2375").build(); DockerClient dockerClient = DockerClientBuilder.getInstance(config).build(); CreateContainerResponse container1 = dockerClient.createContainerCmd("tomcat:latest").withCmd("sleep", "9999") .withName("mytomcat3").exec(); dockerClient = DockerClientBuilder.getInstance().build(); dockerClient.startContainerCmd(container1.getId()).exec(); 我有以下信息: java.lang.RuntimeException: Library 'junixsocket-native-2.0.4.dll' not found! at org.newsclub.net.unix.NarSystem.getLibPath(NarSystem.java:132) at org.newsclub.net.unix.NarSystem.loadLibrary(NarSystem.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.newsclub.net.unix.NativeUnixSocket.<clinit>(NativeUnixSocket.java:35) at org.newsclub.net.unix.AFUNIXSocket.<init>(AFUNIXSocket.java:36) at org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:54) at com.github.dockerjava.jaxrs.ApacheUnixSocket.<init>(ApacheUnixSocket.java:51) at com.github.dockerjava.jaxrs.UnixConnectionSocketFactory.createSocket(UnixConnectionSocketFactory.java:66) at […]

无法连接到docker上使用Ubuntu的Ejabberd

我试图运行tje ejabberddocker集装箱,当我运行它,我无法连接到它。 $ sudo docker run –restart = always –name ejabberd -d -p 5222:5222 -p 5280:5280 -p 5269:5269 ejabberd / ecs $ netstat -an | grep LIST tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp6 0 0 ::: 22 ::: * LISTEN 任何想法为什么docker不打开主机上的端口?

dockerlogin超时在Ubuntu

我可以docker拉,dockerbuild设,但不是dockerlogin。 我试过docker-Dlogin,没有日志 – 添加dockerdebugging:真正daemon.json似乎无法得到任何相关的日志。 $ docker -D login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: xxx Password: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting […]

有关使用Docker的磁盘使用情况的虚假信息

我可能已经阅读了二十多篇有关Docker和磁盘空间的文章。 但我似乎无法弄清楚这里发生了什么。 我有一个75GB的驱动器,几天后得到100%的使用。 然后我重新启动服务器,它的所有空间又回来了… 我跑了 sudo docker system prune –all –force 它收回了一点,但不多。 我有5个容器运行 任何想法如何我可以告诉这个磁盘空间的去向?

Ubuntu-Server:每个SSH-Connect都会创build一个未删除的cgroup

我们正在运行一些Ubuntu 14.04服务器,它为创build的每个SSH会话创build一个新的cgroup ,但是遗憾的是当会话closures时,cgroups不会被删除。 因为我们也在其中一台服务器上运行GitLab ,一些Git-clients每分钟轮询一次,所以我们每周会为成千上万的僵尸cgroup提供git-user。 大约每月一次,我们达到了导致cgroup-limit问题的cgroup-limit : 启动容器进程导致“process_linux.go:258:应用cgroupconfiguration导致进程”mkdir / sys / fs / cgroup / memory / docker / 28485427c2689d7a2c4be83990af873e9ab5732c5c741f0d10bfc3ba21b1d167:设备上没有剩余空间“ 看来这个问题只发生在安装了docker的服务器上。 其他服务器正确删除cgroups。 也许docker安装依赖关系是这里的问题。 Docker本身正在删除它的cgroups。 对于我们所知的问题唯一的解决办法就是重新启动机器。 这里docker version的输出: Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git commit: c6d412e Built: Mon Mar 27 17:10:36 2017 OS/Arch: linux/amd64 Server: Version: 17.03.1-ce API version: 1.27 (minimum version […]

build立docker图像时无法安装包

我使用以下代码将gdal添加到我的泊坞窗图像中: FROM node:7-onbuild RUN apt-get -y update && apt-get -y install software-properties-common python-software-properties RUN add-apt-repository ppa:ubuntugis/ppa RUN apt-get -y update && apt-get -y install gdal-bin 在add-apt-repository之后执行apt-get -y update时,总会返回错误: W: Failed to fetch http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. 在执行docker build时,我添加了–no-cache 。 […]

重新启动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 […]