Tag: stream浪汉

如何在Vagrant中提供Docker镜像?

UPDATE 我自己find了解决scheme – 我在这里创build了一个简单的样板: https : //github.com/ezmilhouse/docker 随意从这里继续。 我的build_dir中的build_dir需要各种build_dir镜像才能使用(已经构build好),我想我可以强制Vagrant将这些镜像作为configuration过程的一部分 – 这是行不通的。 Vagrant.configure("2") do |config| config.vm.define "app" do |app| # provision app.vm.provision "docker" do |d| d.build_image "/Docker/lib/ubuntu", args: "-t local/ubuntu" d.build_image "/Docker/lib/ubuntu-mongodb", args: "-t local/ubuntu-mongodb" d.build_image "/Docker/lib/ubuntu-nginx-vagrant", args: "-t local/ubuntu-nginx" d.build_image "/Docker/lib/ubuntu-node", args: "-t local/ubuntu-node" end # provider app.vm.provider "docker" do |d| d.build_dir = "." end […]

Mac OS X,Vagrant,Docker,Nginx,Node – 端口如何一起玩?

我有一个简单的nginx,node.js设置,我想迁移到stream浪者,Docker世界。 我不知道如何处理IP和端口。 我的目标是通过调用我的主机http://example.com ,在浏览器中看到我的Hello World ,在80端口的最佳情况。 更新我自己find了解决scheme – 我在这里创build了一个简单的样板: https : //github.com/ezmilhouse/docker随意从这里继续。 app.js var app = express(); app.route('*').all(function(req, res) { res.send('Hello World!'); }); app.listen(2000) nginx.conf upstream example.com { # using the vagrant private network IP (I guess?) # using the node port server 192.168.33.10:2000 } server { # ports nginx server is listen to listen […]

stream浪者pipe理docker集装箱不启动

我一直在试图写一个stream浪文件来启动我的docker容器来运行我一直在写的一个小型的networking应用程序。 但是,当我尝试使用stream浪汉,我最终得到一个错误说 The container started either never left the "stopped" state or very quickly reverted to the "stopped" state. This is usually because the container didn't execute a command that kept it running, and usually indicates a misconfiguration. If you meant for this container to not remain running, please set the Docker provider configuration "remains_running" […]

在Windows上创builddocker容器

因此,启动并运行boot2docker,以及从Docker Hub中取出容器在Windows环境中是没有问题的。 但是,如果我想创build一个容器并运行它,那我该怎么去做呢? 我读过关于使用无花果,但通过Windows或从容器安装无花果? 我试图从容器中做到这一点,但它通常会导致权限错误,甚至CHOWNing文件夹不能解决无法在容器中调用无花果的问题。 是否可以通过Windows上的Boot2Docker作为开发环境运行docker? 或者我应该使用Vagrant作为宿主虚拟机,并在其中使用一堆Docker容器? 只是一些澄清和方向将不胜感激。

Vagrant + Docker + Tomcat:与容器共享webapps文件夹

我试图把webapps放到dockerized,vagrant tomcat安装中。 把我的进展推到github: github演示 我得到这个在我的vagrantfile.proxy指向我的webapps目录: config.vm.synced_folder "./webapps", "/var/lib/tomcat7/webapps" config.vm.network :forwarded_port, guest: 8080, host: 9200 我有tomcat运行在8080 – >转发到9200.我可以看到tomcat服务器启动,但我的webapp: tomcat示例战是404。 我将这一行添加到我的tomcat Dockerfile中: VOLUME [ "var/lib/tomcat7/webapps/" ] 这在我的stream浪文件本身: config.vm.define "tomcat" do |v| v.vm.provider "docker" do |d| d.build_dir = "./dockerfiles/tomcat" d.ports = [ "8080:8080" ] d.volumes = ["/var/lib/tomcat7/webapps/"] d.vagrant_vagrantfile = "./Vagrantfile.proxy" end 结束 有没有什么我失去了stream浪,使我的./webapps目录链接到var / lib / tomcat7 / […]

docker守护进程无法在vagrant vm上运行(centos / ubuntu)

当试图运行docker守护进程(docker -d)时,它只是卡住了,我已经尝试了与centos和Ubuntu的stream浪盒子。 docker -d INFO[0000] +job serveapi(unix:///var/run/docker.sock) INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) WARN[0000] WARNING: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors INFO[0000] +job init_networkdriver() INFO[0000] -job init_networkdriver() = OK (0) INFO[0000] WARNING: mountpoint for memory not found INFO[0000] Loading containers: start. INFO[0000] Loading containers: done. […]

如何在家庭Web服务器上托pipeGhost博客

我在运行Ubuntu Snappy Core OS的虚拟机中运行Docker容器内的Ghost博客。 这台虚拟机正在我的家用服务器上运行,一台C720 Chromebook破解运行在裸机上的Lubuntu。 我可以在localhost:2368看到这个博客,但是不知道如何让它可以被外界访问? 我是从路由器到C720的端口转发,并validation了我可以从本机操作系统托pipe博客。 现在我试图从虚拟机里面运行它。

使用Vagrant顶部的docker映像构buildRedis群集:无法ping机器

我试图在OSX上使用docker在virtualbox VMS中构build一个简单的redis集群。 具体来说,我想创build一个有两个从(.101和.102)的主redis节点(192.168.0.100)。 这包括configuration每台机器并向每个从机发出一个命令,告诉它主机处于键值 – 存储关系。 这很好,直到我决定通过在我的Vagrantfile中编写一些程序化的东西来使我的configuration更加灵活。 结果是,我甚至无法ping到.102旁边的任何机器,更不用说使用redis-cli命令(例如, redis-cli -h 192.168.0.100 INFO查看主站的从站设置正确) 我的目标/限制: 在虚拟机虚拟机中运行docker:在阅读文档时,我看到了几种方法。 我select了这样做的方式,因为我不想引用大量的外部文件。 在configuration完成之后,在每个虚拟机上运行一系列命令,设置从属和不可用。 我宁愿不使用boot2docker,因为我有一堆其他的东西,我要join… twemproxy,哨兵,我想模拟一个生产环境至less一点点。 我在新文件中做错了什么? 编辑:我已经调查了一下。 我试过的一件事是破坏所有图像,然后运行旧的stream浪文件来build立机器,然后用新的stream浪文件重新加载它们。 在这种情况下,机器工作,虽然每次我看到像redis1: Warning: Authentication failure. Retrying…authentication失败消息redis1: Warning: Authentication failure. Retrying… 机器重新redis1: Warning: Authentication failure. Retrying…后redis1: Warning: Authentication failure. Retrying… 我能ping通机器,但没有问题。 新的Vagrantfile(使用下面的configuration文件): require './config.rb' include RedisClusterConfig Vagrant.configure(2) do |config| config.vm.provider "virtualbox" ## Redis Nodes (Can define […]

将stream动应用程序部署到泊坞窗中

现在我正在使用Windows和goclipse开发RESTfull API。 testingenvironemnt由Vagrantpipe理的less数虚拟机组成。 这些机器包含nginx,PostgreSQL等。应用程序应该部署到分离的虚拟机上的Docker。 第一次使用像这样的指南部署应用程序没有问题: https : //blog.golang.org/docker 。 我已经阅读了大量的信息和指南,但仍然完全困惑如何在代码完成一些更改后,自动化部署过程并更新Docker中的应用程序。 在目前阶段,代码的更改经常进行,所以部署应该很快。 你能否以正确的方式build议我为这种情况设置某种本地CI? 什么方法会更好? 非常感谢。

灰烬和帆部署

我正在使用Ember和Sails制作一个5人的networking应用程序。 前端将使用Ember编写,而后端将是使用Sails编写的RESTful API。 两者都将存储在单独的公共GitHub存储库中。 我打算在DigitalOcean上设置一个VPS来托pipe数据库(MongoDB),后端和前端。 我们没有钱有独立的服务器,生产设置真的只是演示项目教授。 有没有人有一个从开发到生产的良好工作stream程的推荐? 有这么多的select:stream浪者,docker工人,特拉维斯,jenkins; 我不知道该怎么办。 谢谢。