docker slides

Yet Another Presentation on Docker


$ whoami

https://github.com/neofob


A Brief Sketch of Docker History


A Step Back in Time


Isolating resources is a common theme


Patching the Linux Kernel


How the Docker does it


Common Practice


Docker in Action

tuan@m4700:~/src/notes$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
angr                0.0.1               d649a707db79        19 hours ago        845MB
ubuntu              16.04               747cb2d60bbe        7 days ago          122MB
debian              stretch             874e27b628fd        8 days ago          100MB
phusion/baseimage   0.9.22              877509368a8d        5 months ago        225MB
phusion/baseimage   latest              877509368a8d        5 months ago        225MB

Let's run angr

tuan@m4700:~/src/docker-angr$ docker run -it --rm \
-v $PWD/tests/test_angr.py:/tmp/test_angr.py \
--entrypoint /bin/bash angr:0.0.1
root@905b18a18836:/# ls -l /tmp 
total 4
-rwxrwxr-x 1 1000 1000 252 Oct 17 21:23 test_angr.py

Use a pre-built angr virtual environment

root@905b18a18836:/# workon
angr
root@905b18a18836:/# workon angr
(angr) root@905b18a18836:/#

Run a test script with angr

(angr) root@905b18a18836:/# cat /tmp/test_angr.py 
#!/usr/bin/env python

import angr
proj = angr.Project('/bin/true')
state = proj.factory.entry_state()
state.regs.rbp = state.regs.rsp
state.mem[0x1000].uint64_t = state.regs.rdx
state.regs.rbp = state.mem[state.regs.rbp].uint64_t.resolved
print state

Run a test script with angr

(angr) root@905b18a18836:/# /tmp/test_angr.py 
<SimState @ 0x4013d0>
(angr) root@905b18a18836:/# echo $?
0

What it is Not


References

"The Internet is full of containers and half of them are made by Jess Frazelle." some Internet user