Docker 101
root@phpkonf:~# dockerrun hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from hello-world
…
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
root@phpkonf:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
f912ea95c1b0 hello-world "/hello" 8 minutes ago Exited (0) 8 minutes ago
11.
Docker 1001
root@phpkonf:~# echo'<?php echo "Hello World!";' > index.php
root@phpkonf:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
10cd4a32778b php:latest "php index.php" A minute ago Exited (0) 13 seconds ago
randomnameee
root@phpkonf:~# docker run -v “$PWD":/code -w /code php:latest php index.php
Hello World
Container Linkleme
Docker Compose (Fig)
Eleganbir YAML sintaksa sahip.
Multi-container’dan oluşan uygulamaları
yönetmemizi kolaylaştırıyor.
Eskiden adı Fig olan bir proje olarak
başlamıştı. Tutunca Docker satın aldı. :$