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.
The Repository on docker i am using on container
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)
What is going wrong here? What is it i am missing here :(