Tag: Ubuntu

不能在Docker容器中运行Mongo DB deamon

我使用boot2docker在OSX中运行docker容器。 这是一个最新的Ubuntu的图像与mongo安装使用官方的方式从包mongodb-org 。 我可以从命令行完美运行mongod ,但不能作为服务运行。 当我试图做sudo service mongod start它返回 Rather than invoking init scripts through /etc/init.d, use the service(8) utility, eg service mongod start Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, eg start mongod 我试图做start mongod没有任何输出的start mongod 。 我尝试了我在Google中find的所有内容,但没有成功。 同时,我试图使用apt-get来安装MySQL,并且可以将其作为服务完美地运行。 […]

libcurl与Ubuntu 14.04上的ares

我读了这个post 但它回答了如何编译curl。 我知道。 我想replacelibcurl包。 所以当我安装软件aptitude的时候会知道libcurl存在。 当Ubuntu将更新,那么它不应该overrite libcurl。 sudo checkinstall 不build议,但大多数职位广告 sudo make install 例如http://www.howtogeek.com/105413/how-to-compile-and-install-from-source-on-ubuntu/ 如何在启用了ares的情况下安装curl 我想知道是否值得使用docker如果我需要与单个应用程序的ares libcurl 。

如何用fig恢复postgres数据库?

我试图使用图( http://www.fig.sh/ )的Django应用程序。 我不能从转储重新创build数据库,我尝试: fig run db pg_restore -d DBNAME < backup.sql 并得到: socket.error:[Errno 104]由对等方重置连接 但是这个运行(仍然没有看到数据库中的表): fig run db pg_restore < backup.sql 这是dockerfile: FROM python:3.4 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ ADD backup.sql /code/ RUN pip install -r requirements.txt RUN pg_restore -d postgres backup.sql ADD . /code/ 和fig.yml: db: image: […]

无法使用ASP.NET 5,Docker和Ubuntu连接到MSSQL服务器

我认为这将是一个有趣的项目,在Ubuntu服务器上的Docker容器中使用ASP.NET 5站点。 我有一个简单的MVC网站正在运行,现在我想从MSSQL服务器返回数据,但是当我运行容器时,它立即停止。 我用来build立我的docker图像的指南可以在这里find: http : //blogs.msdn.com/b/webdev/archive/2015/01/14/running-asp-net-5-applications-in-linux-容器与- docker.aspx 是否有日志,我可以查看告诉我为什么我的docker图像停止工作? 是否有可能连接到Linux服务器上的Docker容器内使用ASP.NET 5的MSSQL服务器? 我的Web.Config如下: <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=<mssql_server_fqdn>; Initial Catalog=<db_name>; User ID=<username>; Password=<password>" /> </connectionStrings> <system.web> </system.web> </configuration> 我的模特如下: using System; using System.Data.Entity; namespace TestMvc.Models { public class Car { public string Make { get; set; } } public class […]

在主机上安装mysql的dockerizing wordpress

我想在我的本地主机上安装mysql的docker上运行WordPress(ubuntu 14.04) 我从这里使用docker镜像: https : //registry.hub.docker.com/_/wordpress/ 我通过我的主机IP地址(192.168.1.1)和端口(3306),如下所示 sudo docker run -it –name wp -e WORDPRESS_DB_HOST=192.168.1.1:3306 -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=root -d wordpress 但是当我尝试运行图像时出现以下错误 "MySQL Connection Error: (2002) Connection refused" 下面是我遵循的确切步骤 sudo docker run -it –name wp -e WORDPRESS_DB_HOST=192.168.1.1:3306 -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=root -d wordpress sudo docker ps -a sudo docker commit <container_id> myuser/eslwp sudo docker images […]

如何设置不同的静态IP到同一主机上的每个docker容器?

我正在尝试为每个docker containers分配静态IP地址,但是docker总是为每个容器分配dynamicIP地址。是否有configuration文件的位置来实现这个或者任何命令?

无法在Archlinux主机中的Docker容器中运行X应用程序

我有一个Dockerfile,使我能够运行X应用程序。 它在Ubuntu主机中完美工作,但不在Archlinux主机中: FROM mascip/archlinux:2014.12.09 # To avoid a bug with the filesystem: https://registry.hub.docker.com/u/base/arch/ RUN sed 's/^CheckSpace/#CheckSpace/g' -i /etc/pacman.conf # BROWSERS RUN pacman –noconfirm -S nvidia-libgl && pacman –noconfirm -S leafpad # NON-ROOT USER # Replace you uid, gid, and username RUN pacman –noconfirm -S sudo RUN export uid=1000 gid=1000 && the_user="abla" && \ the_home="/home/${the_user}" && […]

Docker,不能在Ubuntu 14.04上使用rhel / centos容器

我已经追了近一个星期,不能得到它的工作。 我的Ubuntu 14.04笔记本电脑上安装了Docker 1.0.1。 当我启动一个rhel / fedora / centos容器并安装sshd时,我无法build立一个ssh连接。 对Ubuntu容器做同样的工作很好。 这里是我的SSH尝试的debugging输出: OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [127.0.0.1] port 4022. debug1: Connection established. debug3: Incorrect RSA1 identifier debug3: Could not load "/home/mb/.ssh/id_rsa" as a […]

dockerlogin错误:没有这样的主机

从registry泊坞窗镜像启动私人dockerregistry后,做一个login到registry docker login http://docker.mydomain.com:5000 input姓名,密码和电子邮件后会导致以下错误: FATA[0007] Error response from daemon: v1 ping attempt failed with error: Get https://docker.mydomain.com:5000/v1/_ping: dial tcp: lookup docker.mydomain.com: no such host. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `–insecure-registry docker.mydomain.com:5000` to the daemon's arguments. In the case of HTTPS, if you have […]

使用Virtual Box无法与Docker(Centos 7)+ DNS服务器(Container Ubuntu 14.04)通信

我有一个与虚拟框的Docker(Centos 7)+ DNS服务器(容器Ubuntu 14.04)的问题。 首先,我需要解释我是如何构build结构的: 我正在使用虚拟机testingDocker,在这种情况下使用虚拟机。 我在模式桥中创build了一个带有一个网卡的Centos 7虚拟机。 在Centos 7里面有Docker v.1.6.0 ,接口docker0 172.17.42.1(Bridge) ,是Docker的默认接口。 这是我用root做的configuration。 在Docker里面我用Ubuntu 14.04创build了一个容器: # sudo docker run -i -t ubuntu /bin/bash NAT的docker0给我IP 172.17.0.2(eth0 – >桥) ,我与bind9的 DNS服务器,这是我的configuration: /etc/bind/named.conf.local zone "domain.com" { type master; file "/etc/bind/db.domain.com"; }; zone "42.17.172.in-addr.arpa" { type master; file "/etc/bind/db.172.17.42"; }; /etc/bind/db.domain.com ; ; BIND data file for […]