user-friendly "Framework" / "Ecosystem" for handling Containers!
for interaction with Docker Daemon
shares a UNIX socket with the daemon
connects to the same UNIX socket as the client
responsible for starting, stopping and monitoring containers
public registry for Docker images
But why not simply use a VM?
VMs
Containers
VM
Container
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get install -y nginx php7.0-fpm supervisor && \
rm -rf /var/lib/apt/lists/*
...
docker build -t mysuperimage .
mysuperimage:v2
mysuperimage:v2
Why should Devs know containers?
Demo
--> State of the art! --> $
Live Demo Prisma Setup
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.31
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
user: root
password: prisma
rawAccess: true
port: 3306
migrations: true
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
volumes:
mysql:
Requirements:
- Docker installed
- NPM installed
- CLI :)
To-Do:
$ npm install -g
$
$ prisma init (create new database -> MySQL -> don't generate)
$ docker-compose up -d
$prisma deploy
React Setup
Live Demo of:
https://www.peterbe.com/plog/how-to-create-react-app-with-docker