Carter Barnes
$
App
Server
OS
VM
%
Hypervisor
Host Operating System
% CPU
% RAM
% HD
Licensing
Simplify, then add lightness
- Colin Chapman
Container Host
Install it...
https://www.docker.com/community-edition
Images are filesystem and parameters to use at runtime. They don't have state and never change.
Containers are running instances of images.
Volumes are directories designed to persist data, independent of the container’s life cycle.
docker run
-v ${PWD}:/app
microsoft/dotnet
FROM
COPY
ENTRYPOINT
ENV
EXPOSE
RUN
WORKDIR
FROM microsoft/dotnet WORKDIR /app COPY . . RUN ["dotnet", "restore"] RUN ["dotnet", "build"] EXPOSE 5000/tcp ENV ASPNETCORE_URLS http://*:5000 ENTRYPOINT ["dotnet", "run"]
Demo Dockerfile
Profile Service
Checklist Service
Cache
Database
Demo Docker-Compose
By Carter Barnes