Docker Cookbook


Using Boot2Docker to Get a Docker Host on OS X | 11



Download 6,31 Mb.
Pdf ko'rish
bet21/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   17   18   19   20   21   22   23   24   ...   260
Bog'liq
Docker Cookbook

1.7 Using Boot2Docker to Get a Docker Host on OS X | 11


Figure 1-4. boot2docker VirtualBox VM
You do not need to have the VirtualBox UI open; the snapshots are
here only for illustration. Boot2Docker uses the VBoxManage
commands to manage the boot2docker VM in the background.
You are now ready to start Boot2Docker. This will run the VM and return some
instructions to set environment variables for properly connecting to the Docker dae‐
mon running in the VM:
12 | Chapter 1: Getting Started with Docker


$ boot2docker start
Waiting for VM and Docker daemon to start...
.........................ooooooooooooooooooooo
Started.
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/key.pem
To connect the Docker client to the Docker daemon, please set:
export DOCKER_CERT_PATH=/Users/sebgoa/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1
export DOCKER_HOST=tcp://192.168.59.103:2376
Although you can set the environment variables by hand, Boot2Docker provides a
handy command: 
shellinit
. Use it to configure the Transport Layer Security (TLS)
connection to the Docker daemon, and you will have access to the Docker host from
your local OS X machine:
$ $(boot2docker shellinit)
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/sebgoa/.boot2docker/certs/boot2docker-vm/key.pem
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Discussion
When a new version of Boot2Docker is available, you can upgrade easily by down‐
loading the new Boot2Docker installer and downloading a new ISO image with the
download
command.
Make sure that you stop the current boot2docker VM with
$ boot2docker stop
before running the installer script:
$ boot2docker stop
$ boot2docker upgrade
$ boot2docker start

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   ...   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