Docker run command overhead -
i'm curious amount of overhead (time taken start running, assuming i've pulled docker image) docker gives when doing docker run
opposed me writing script installs same things docker would. experience, docker run
seems execute instantly , ready go, imagine more complicated dockers might have additional overhead? i'm thinking using yarn bring services on fly docker, wondering if might come quicker without docker. thoughts on this?
note: i'm not concerned performance after docker right now, i'm concerned time taking bring service.
docker pretty quick start, there things consider.
the quickest way test overhead using time
executable , running command:
docker run --rm -it ubunbu /bin/bash echo test
which gives this:
$ time docker run --rm -it ubuntu echo test test real 0m0.936s user 0m0.161s sys 0m0.008s
what can read this, cpu took 0.16 sec run command, took little less sec in real time, includes (disk i/o, other process)
but in general, not worry performance if using containers, main reason want use them consistency.