Docker Cookbook


Using Docker Compose to Create a WordPress Site | 195



Download 6,31 Mb.
Pdf ko'rish
bet158/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   154   155   156   157   158   159   160   161   ...   260
Bog'liq
Docker Cookbook

7.1 Using Docker Compose to Create a WordPress Site | 195


---------------------------------------------------------------------------------
vagrant_mysql_1 /entrypoint.sh mysqld Up 3306/tcp
vagrant_wordpress_1 /entrypoint.sh apache2-for ... Up 0.0.0.0:80->80/tcp
Discussion
Docker Compose was originally developed by Orchard and was
called 
Fig
. After acquisition of Orchard by Docker Inc., Fig was
renamed 
Docker Compose
. You can expect a tight integration of
Compose with the Docker CLI even though the current Compose
is a separate binary. The source can be found on 
GitHub
.
Compose has the following commands to manage a container environment:
Fast, isolated development environments using Docker.
...
Commands:
build Build or rebuild services
help Get help on a command
kill Kill containers
logs View output from containers
port Print the public port for a port binding
ps List containers
pull Pulls service images
rm Remove stopped containers
run Run a one-off command
scale Set number of containers for a service
start Start services
stop Stop services
restart Restart services
up Create and start containers
The usage of each command is obtained by specifying 
--help
after the command—
for example, 
docker-compose kill --help
. Most commands take 
SERVICE
as a
parameter. A service in Compose is the name given to the running container in the
docker-compose.yml
file. For example, you could stop the WordPress service and start
it again:
$ docker-compose stop wordpress
Stopping vagrant_wordpress_1...
$ docker-compose ps
Name Command State Ports
------------------------------------------------------------------------
vagrant_mysql_1 /entrypoint.sh mysqld Up 3306/tcp
vagrant_wordpress_1 /entrypoint.sh apache2-for ... Exit 0
$ docker-compose start wordpress
Starting vagrant_wordpress_1...
$ docker-compose ps
Name Command State Ports

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   154   155   156   157   158   159   160   161   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish