유튜브에 영상 업로드 후 lamp
브랜치는 master
브랜치에 머지되었습니다.
~/docker-example(master) $ docker build -f docker/Dockerfile --tag lamp:190610 docker
~/docker-example(master) $ docker run -d \
--name mylamp \
-v `pwd`:/var/www/html \
-v `pwd`/docker/data:/var/lib/mysql \
-p 80:80 \
-p 3306:3306 \
-p 9001:9001 \
lamp:190610
$ docker stop mylamp
$ docker start mylamp
$ docker exec -it mylamp bash
상태 확인
(container) $ supervisorctl status
#mysql RUNNING pid 47, uptime 0:27:55
#apache2 RUNNING pid 45, uptime 0:27:55
stop, start, restart
(container) $ supervisorctl stop apache2
(container) $ supervisorctl stop all
(container) $ supervisorctl start apache2
(container) $ supervisorctl start all
(container) $ supervisorctl restart apache2
(container) $ supervisorctl restart all