Tag: Ubuntu

docker集装箱在不同的networking

我目前正在与Ubunut LTS和Docker合作,现在我正在寻找将两个容器连接到不同的networking,我的第一台服务器在我的学校,第二台服务器在AWS上。 我想知道是否有可能互相沟通,我已经读了一些关于Docker Swarm的内容,但是我无法find有关如何在单独networking中交stream容器的信息或任何教程。 谢谢

在docker容器中运行npm install时出错

尝试在我的泊坞窗容器中运行npm安装。 但我得到的是这样的: pm WARN package.json yeti-ui@0.0.0 No repository field. npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.1.1 npm ERR! notsup Valid OS: darwin npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: linux npm ERR! notsup Actual Arch: x64 npm ERR! System Linux 4.9.31-moby npm […]

芹菜吃了记忆

我在aws上有一个t2.medium实例。 我的两个Python应用程序和他们的芹菜工作人员在不同的docker集装箱内运行。 共有4个容器正在运行。 无缘无故,芹菜吃了很多实例的记忆。 ps命令输出的屏幕截图 我已经检查过,django正在运行DEBUG_MODE False。 我已经将worker_max_tasks_per_childconfiguration为200,将worker_max_memory_per_childconfiguration为200MB。 我有: Ubuntu版本:16.04 Python版本:3.5 截至目前,我没有执行任何任务,仍然吃掉实例内存。 请帮我debugging问题。 芹菜报告的输出 软件 – >芹菜:4.0.2(latentcall)kombu:4.0.2 py:3.5.2台球:3.5.0.2 py-amqp:2.1.4 平台 – >系统:Linux arch:64bit,ELF imp:CPython loader – > celery.loaders.default.Loader 设置 – >运输:amqp结果:禁用

不能ping我的docker容器外的主机

嗨,我已经安装并启动了docker集装箱。 当我访问这个容器,并做ifconfig时,这是我得到: eth0 Link encap:Ethernet HWaddr 02:42:0a:32:00:02 inet addr:10.50.0.2 Bcast:0.0.0.0 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:387 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:73801 (73.8 KB) TX bytes:1572 (1.5 KB) eth0:1 Link encap:Ethernet HWaddr 02:42:0a:32:00:02 inet addr:10.50.1.1 Bcast:10.50.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:2 […]

docker机器错误在Ubuntu 16.04

我想在Ubuntu LTS 16.04中创builddocker-machine,但是如何解决这个问题却有错误

Windows上的Bash – exe文件的别名

我在Windows上使用Ubuntu上的Bash,在Windows 10上运行bash的方式。我安装了Creator更新,Ubuntu版本是16.04。 我最近玩的东西是npm,node.js和Docker,而且对于docker,我发现可以安装它并在windows中运行,只需使用bash中的客户端部分,直接调用Windows程序文件中的docker.exe文件文件夹。 我只是更新我的pathvariables,包括docker的pathPATH=$PATH:~/mnt/e/Program\ Files/Docker/ (放入.bashrc),然后我能够运行docker.exe从bash调用docker.exe 。 但是,嘿这个bash,我不想在命令(程序)的末尾写入.exe。 我可以简单地添加一个别名alias docker="docker.exe" ,但是我想用let说docker-compose,而且我必须添加另外一个。 我正在考虑向.bashrc添加一个脚本,它将覆盖pathvariables,并在pathvariables中指定的每个path中search.exe文件,并为每个发生添加一个别名,但似乎不是一个非常干净的解决scheme(但是我想这样可以达到它的目的)。 有一个简单而干净的解决scheme来实现这一目标吗?

Dockerfile连接到ODBC(例如HPE Vertica)安装程序

我有一个简单的GO程序,可以在我的Ubuntu服务器上成功连接到Vertica。 我在这个Ubuntu中设置了.dobc.ini和odbc drvier 。 db, err := sql.Open("odbc", "DSN=HPVerticaDSN") if err != nil { log.Fatal(err) } log.Println("DB ping started…") if err = db.Ping(); err != nil { log.Fatalf("DB ping failed with error…%v", err) } log.Println("DB connected.") defer db.Close() 现在,我如何设置Dockerfile在Docker容器中运行这个。 是否有可能使用像阿尔卑斯山这样重量轻的基础图像,或者我们必须使用ubuntu的基础图像。 任何例子将不胜感激。 这是我的Dockerfile FROM alpine:latest MAINTAINER Prataksha Gurung <prataksha.gurung@mydomain.net> RUN apk add –no-cache ca-certificates ADD libverticaodbc.so […]

使用apt-get在代理之后构build一个docker文件

我试图RUN apt-get -y install python在代理背后RUN apt-get -y install python ,如下面的dockerfile所示: FROM ubuntu:16.04 RUN \ http_proxy=http://exampleproxy.com:80 \ apt-get -y update && \ http_proxy=http://exampleproxy.com:80 \ apt-get install -y python python-dev python-pip python-virtualenv RUN \ http_proxy=http://exampleproxy.com:80 \ rm -rf /var/lib/apt/lists/* RUN pip install –upgrade pip –proxy=http://emea-proxy.uk.oracle.com:80 ADD . /code WORKDIR /code RUN pip install -r requirements.txt –proxy=http://exampleproxy.com:80 ENTRYPOINT […]

如何在Debian / Ubuntu中启用CFS cgroup支持

我需要在主机上使用最新的Debian(9)或Ubuntu(17.0.4)来限制Docker容器中的CPU。 $ docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.06.0-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog […]

如何代理泊坞窗容器端口+ http到一个子url?

所以我有一个容器在808x上运行不同的http服务器。 本地URL对他们很重要。 我想要一个代理susch 如果容器X期望: localhost:808X/bla/ble/blu 一个网站用户可以称之为site.io/Id_X/bla/ble/blu 代理会将URL转换为容器的localhost:808X/bla/ble/blu 。 如何使用Docker在Ubuntu上做这样的事情?