Tag:

在没有Docker Toolbox的OSX上安装docker-machine

我正确地假设安装Docker Toolbox现在是在OSX上安装docker-machine所需的方法吗? 我有一个脚本,我一直用来join我的开发团队,他们安装了像docker-machine这样的docker相关工具,但是它通过curl来实现。 这停止了​​最新版本的工作。 他们所有的文档说我需要安装Docker Toolbox,没有任何替代的迹象。 有没有办法通过命令行来安装它?

用docker-compose运行docker镜像

我有我的简单的应用程序在C#中,连接到PostgreSQL。 我想创build这个应用程序的形象,只是与docker运行。 我使用时一切正常: $ docker build $ docker run postgres $ docker run my_app 此外,当我使用从应用程序目录撰写时,一切都可以: $ docker-compose build $ docker-compose up 但是有没有机会使用docker-compose为我以前build造的图像? 我想发布这个图像到我的回购和我的团队的其他人只是下载并运行这个图像(应用程序+数据库)。 当我编写构build和下一步撰写运行my_app我连接到数据库时有exception: dbug: Npgsql.NpgsqlConnection[3] Opening connection to database 'POSTGRES_USER' on server 'tcp://postgres:5432'. Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.AggregateException: One or more errors occurred. (No […]

预编译的资产在泊坞窗图像中不存在

我正在尝试使用docker运行简单的Rails应用程序。 源自数据容器“app”的源代码。 'app'数据容器也被nginx用于服务器预编译的资产和静态文件。 但是在运行“bundle exec rake assets:precompile”之后没有find预编译的资源。 我在使用VirtualBox的Mac OS X上使用docker(Docker version 1.10.1,build 9e83765)。 泊坞窗,compose.yml version: '2' services: web: build: . command: bundle exec puma env_file: .env environment: – RACK_ENV=production – RAILS_ENV=production volumes_from: – app ports: – "3000:3000" links: – db nginx: image: nginx ports: – "80:80" volumes_from: – app volumes: – /app/public:/usr/share/nginx/html:ro – /app/config/deploy/nginx.conf:/etc/nginx/conf.d/default.conf db: […]