Tag: docker

无法在Debian中创build一个thinpool

我正在重新分区现有的磁盘,并尝试创build一个设备映射器。 所以我的VG组看起来像下面这样: root@my:~# vgdisplay — Volume group — VG Name my-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 6 VG Access read/write VG Status resizable MAX LV 0 Cur LV 5 Open LV 5 Max PV 0 Cur PV 1 Act PV 1 VG Size 111.55 GiB PE Size 4.00 MiB Total […]

不能在代理下载Docker镜像

我在我的Ubuntu 13.10上安装了docker,当我input我的控制台时: sudo docker pull busybox 我得到以下错误: Pulling repository busybox 2014/04/16 09:37:07 Get https://index.docker.io/v1/repositories/busybox/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: no answer from server Docker版本: $ sudo docker version Client version: 0.10.0 Client API version: 1.10 Go version (client): go1.2.1 Git commit (client): dc9c28f Server version: 0.10.0 Server API version: 1.10 Git commit (server): dc9c28f […]

使用Docker for Mac和X11绑定运行GUI应用程序

我正在尝试运行Docker容器,需要与Docker for Mac的GUI。 我遵循本指南 ,MacOS 10.12.3,Docker for Mac 17.03.0-ce和XQuartz 2.7.11。 但是,当我运行docker run -d –name firefox -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix jess/firefox ,没有任何反应, docker logs给出以下, (firefox:1): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast ExceptionHandler::GenerateDump cloned child […]

Docker – 调用未定义函数mcrypt_get_block_size()

在docker中 ,我调用了未定义的函数mcrypt_get_block_size() ,在容器中我安装了php5-mcrypt,并在php.ini中写入了扩展名= mcrypt.so,但是不工作。 sudo docker exec -i -t docker_pbr_1 /bin/bash apt-get update apt-get install php5-mcrypt php5enmod mcrypt /etc/init.d/apache2 restart 我有PHP 5.6,但没有findphp5-mcrypt。

安装Docker自动完成而不使用Home Brew

我想启用Docker自动完成。 这里的说明是使用brew但我使用MacPorts 。 尝试安装bash-completion使用$ sudo port install bash-completion似乎安装一个新的bash在我的系统,我不愿意这样做。 使用MacPorts启用Docker自动完成的最佳做法是什么?

创builddocker机

我想通过openVPN创builddocker机器 我用这个命令 sudo docker-machine create –driver generic –generic-ip-address=xxx.xxx.xxx.x –generic-ssh-key=$HOME/.ssh/id_rsa –generic-ssh-user=root ezequiel 但感谢上帝,它没有工作,因为它试图更新远程主机上的docker版本,所以我试图使用none而不是通用的,以防止从客户端更新远程docker像下一个命令 sudo docker-machine create –driver none –generic-ip-address=xxx.xxx.xxx.x –generic-ssh-key=$HOME/.ssh/id_rsa –generic-ssh-user=root ezequiel 但它失败了,接下来就生成了 不正确的用法。 用法:docker-machine create [OPTIONS] [arg …] 创build一台机器 说明:运行“docker-machine create –driver name”在帮助文本中包含该驱动程序的创build标志。 选项:–driver,-d“virtualbox” 等等… 那么我怎样才能解决这个问题,我需要命令来创builddocker机,而不需要在远程主机上做任何动作,就像试图升级docker版本时那样。

Nginx设置和v1 / **端点访问

我在Ubuntu(aws实例)的Docker容器中运行我的java jersey应用程序这里是一些nginxconfiguration server { listen 80 default_server; listen [::]:80 default_server; index index.html index.htm index.nginx-debian.html; server_name demoapp; location / { proxy_pass http://127.0.0.1:4000; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } } 问题是我不能在部署后从浏览器访问hostname / v1 / **任何api端点,curl -i主机名工作正常,并返回应用程序头(版本等)。 但是,如果我试图直接在Ubuntucurl(curl localhost / v1 / someapi),那么一切正常。 我假设,我的问题与nginxconfiguration。 任何人都知道,如何解决这个问题? 提前致谢。

如何在Dockerfile中创build一个InfluxDB用户

我无法在dockerfile中创buildInfluxDB用户。 我想dockerfile也安装并开始influxd 。 对于postgres,我可以在安装postgres后在我的Dockerfile中使用这个: RUN /etc/init.d/postgresql start &&\ psql –command "CREATE USER matt WITH PASSWORD 'test123';" &&\ createdb test_db &&\ psql –command "GRANT ALL PRIVILEGES ON DATABASE test_db TO matt;" 有influxdb的等价物吗?

docker实例的域名设置

我希望能得到我所需要的帮助。 我有一个通过GoDaddy购买的域,我试图连接到一个示例docker容器实例,以便当我连接到域时,它将从docker容器运行示例应用程序。 然而,我很难理解整个过程,如果有人能帮我解决这个问题,我会很感激。 让我告诉你我到目前为止做了什么: 1)我已经从aws https://www.youtube.com/watch?v=HwZ3wNaM69s跟踪这个video,我已经创build了托pipe区域,并有nsurl,我已经在我的域名服务器configuration设置。 下一步是build立一个apacher服务器,但在我的情况下,我创build了一个ec2。 该video显示了正在使用的公共IP地址以及通过命令行执行的一些日志logging操作。 但在我的情况下,我没有任何公共IP。 所有我在示例应用程序中看到这是一个生成url,如果我点击它,它会带我到示例应用程序的主页面,但我想连接到我的域名,所以当我键入我的域名,它需要我到由aws生成的web服务器url。 有人能告诉我我错过了哪些步骤吗? 谢谢

是否有可能在Drupal 8中使用Docker 17.03的秘密?

我试图在我的Drupal8项目中使用Docker机密,就像在下面的Docker教程(对于WordPress和MySQL)中所解释的那样: https://docs.docker.com/engine/swarm/secrets/#/advanced-example-use-secrets-with-a-wordpress-service “drupal”Docker镜像是否支持使用“xxx_FILE”env读取Docker机密? 谢谢!