Tag: debian jessie

我应该如何设置docker的debian安装来接受远程连接

我试图设置docker的debian安装,以便它会接受外部连接。 我想这样做的原因是,我正在开发一个Windows 7(也是Windows 10)的家庭版本,无法运行docker,但目标机器是一个小的树莓派,这是configuration和运行docker(使用raspbian -jessie),我可以用它作为奴隶的发展环境。 所以如果我在Windows机器上运行Jenkins,它可以将作业传递给从机。 这个问题源于运行systemd时debian安装的方式。 这看起来不正确,但我相信其他人已经克服了这一点,所以我在这里问。 为了使“dockerd”(守护进程)接受来自默认套接字以外的连接,我必须在启动时传递-H标志,或者(根据docker docks)创build一个/etc/docker/daemon.json带有“主机”条目的/etc/docker/daemon.json文件。 我试图做到这一点,但是当docker开始时,它报告说,不能在命令行上有标志,并通过daemon.json文件设置相同的属性。 在一个debian系统安装(这是完整的AMD64 Debian安装,以及我在raspberry pi上使用的raspbian debian),有一个文件/lib/systemd/system/docker.service ,其中包含启动命令dockerd。 如果有标志-H fd:// 。 我认为这是防止daemon.json文件产生影响的有问题的一组标志。 我看到的问题是,如果我只是编辑.service文件,那么.service任何升级都会出现并覆盖它,因为(非常正确)Debian不认为这是一个configuration文件。 其他人如何处理这个难题呢?

如何使用fpectl模块从源代码安装Python 2.7?

我试图从启用了fpectl模块的Docker容器中的源代码安装Python 2.7.14。 使用官方的Python jessie Dockerfile作为起点,我在./configure命令中添加了–with-fpectlconfiguration选项。 你可以在这个要点中看到我的docker build命令的完整输出。 然而,这里有一些有趣的部分: ./configure –build=x86_64-linux-gnu –enable-shared –enable-unicode=ucs4 –with-fpectl … checking for –with-fpectl… yes … x86_64-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/src/python/Include -I/usr/src/python -c /usr/src/python/Modules/mathmodule.c -o build/temp.linux-x86_64-2.7/usr/src/python/Modules/mathmodule.o In file included from Include/Python.h:156:0, from /usr/src/python/Modules/mathmodule.c:55: /usr/src/python/Modules/mathmodule.c: In […]

Docker在debianstream浪盒里面失败了

在Docker版本为17.11.0-ce的Vagrant框中, 构build1caf76c ,这个docker命令失败: docker run mongo:3.4 -v /home/vagrant/src/db:/db -p 27017:27017 –name mongo 与以下错误消息: docker: Error response from daemon: cgroups: memory cgroup not supported on this system: unknown. ERRO[0027] error waiting for container: context canceled OS: Distributor ID: Debian Description: Debian GNU/Linux 8.9 (jessie) Release: 8.9 Codename: jessie 有没有人有一个线索如何解决这个问题? 它与一个不超过几周前的杰西盒子一起工作。 谢谢 :)