dtkmejg127475 2017-01-02 20:44
浏览 80

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

its been days i am trying to wrap my head around docker. still there are grey areas, which i have tried to search the whole google but could not found a good detailed answer.

Scenario is.

im trying to setup a docker for existing laravel application. i do use laradock from github. (its like homestead but for docker)

laradock/laradock

and i use command like this e-g

docker-compose up -d nginx mysql

if i use docker ps command

i would be able to see the running containers for both mysql and nginx and may be some others.

My Question comes here. That how i can take an image of docker-compose.

as i have tried this

docker commit [container-id] username/reponame

and image do gets created. but its incomplete image. as i am running a whole application with mysql nginx etc..

how to take image of whole and deploy it to docker??

and for this single thing i have been banging my head to walls for days :(

all i want is that i can deploy an existing project that is using multiple containers in local to the docker container on docker.com

and i cant see a single tutorial for that. :(

Note: im using docker on windows 10.

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

Update:

I am sorry if i can not explain clearly.

Here is the single node i have, currently i am on free plain with docker.com and microsoft.com as i am learning docker so am on the free one.

The Node with Azure Microsoft.

enter image description here

The Container of Laravel. enter image description here

The Repository on docker i am using on container

enter image description here

and finally the image link as my repository image is public.

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

Now for somereason the image i created and i pushed to docker is not working and site is not going live, even on localhost when i create image and i try to run image it dosent work. but when i try docker-compose up -d command, everything works perfectly.

The logs i have online for my service

[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

What is going wrong here? What is it i am missing here :(

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)