DOCKER | docker-compose创建并部署映像到docker.com

时间:2017-01-02 20:44:37

标签: php mysql laravel nginx docker

这是我试图绕着码头工作的日子。 仍然有灰色区域,我试图搜索整个谷歌,但无法找到一个很好的详细答案。

情景是。

我正在尝试为现有的laravel应用程序设置docker。 我确实使用github的laradock。 (它像家园,但对于码头工人)

  

laradock / laradock

我使用像这样的命令e-g

docker-compose up -d nginx mysql

如果我使用docker ps命令

我可以看到mysql和nginx的运行容器,也可能是其他一些容器。

我的问题来了。 我怎么能拍摄码头工人的形象。

我试过这个

docker commit [container-id] username/reponame

并创建了图像。但它的形象不完整。因为我正在使用mysql nginx等运行整个应用程序。

如何拍摄整体图像并将其部署到docker ??

对于这件事,我几天都在敲打墙壁:(

我想要的就是我可以在docker.com

上部署一个在本地使用多个容器的现有项目到docker容器

我无法看到一个教程。 :(

注意:我在Windows 10上使用docker。

= - = - = - = - = - = - = - = - =

更新

如果我无法解释清楚,我很抱歉。

这是我拥有的单个节点,目前我在使用docker.com和microsoft.com进行免费平台,因为我正在学习码头工具,所以我正在免费使用。

Azure Azure的节点。

enter image description here

Laravel的容器。 enter image description here

我正在使用容器上的Docker上的存储库

enter image description here

最后作为我的存储库图像的图像链接是公开的。

https://hub.docker.com/r/pakistanihaider/pakistanihaider.me/

现在因为某些原因,我创建的图像和我推送到Docker不起作用,网站也没有上线,即使在我创建图像的本地主机上,我尝试运行图像它也不起作用。但是当我尝试docker-compose up -d命令时,一切都很完美。

我在线提供服务的日志

[pakistanihaider-1]2017-01-02T17:56:56.794183200Z /usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
[pakistanihaider-1]2017-01-02T17:56:56.794218000Z   'Supervisord is running as root and it is searching '
[pakistanihaider-1]2017-01-02T17:56:56.923437200Z 2017-01-02 17:56:56,923 CRIT Supervisor running as root (no user in config file)
[pakistanihaider-1]2017-01-02T17:56:56.923533400Z 2017-01-02 17:56:56,923 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
[pakistanihaider-1]2017-01-02T17:56:56.958072800Z 2017-01-02 17:56:56,957 INFO RPC interface 'supervisor' initialized
[pakistanihaider-1]2017-01-02T17:56:56.958969800Z 2017-01-02 17:56:56,958 CRIT Server 'unix_http_server' running without any HTTP authentication checking
[pakistanihaider-1]2017-01-02T17:56:56.960595100Z 2017-01-02 17:56:56,960 INFO supervisord started with pid 1
[pakistanihaider-1]2017-01-02T17:56:57.968087400Z 2017-01-02 17:56:57,967 INFO spawned: 'nginx' with pid 7
[pakistanihaider-1]2017-01-02T17:56:57.970004700Z 2017-01-02 17:56:57,969 INFO spawned: 'hhvm-fastcgi' with pid 8
[pakistanihaider-1]2017-01-02T17:56:57.971064400Z 2017-01-02 17:56:57,970 INFO spawned: 'php5-fpm' with pid 9
[pakistanihaider-1]2017-01-02T17:56:59.547596700Z 2017-01-02 17:56:59,542 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[pakistanihaider-1]2017-01-02T17:56:59.547617600Z 2017-01-02 17:56:59,542 INFO success: hhvm-fastcgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[pakistanihaider-1]2017-01-02T17:56:59.547623400Z 2017-01-02 17:56:59,543 INFO success: php5-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

enter image description here

这里出了什么问题?我在这里缺少的是什么:(

0 个答案:

没有答案