Skip to content

Instantly share code, notes, and snippets.

@tylerpace
Created May 19, 2017 15:12
Show Gist options
  • Save tylerpace/26bf8be8142887d4039d7585e2f6cb67 to your computer and use it in GitHub Desktop.
Save tylerpace/26bf8be8142887d4039d7585e2f6cb67 to your computer and use it in GitHub Desktop.
Small script for bootstrapping containers to scan with Lumogon
docker run \
--label nginx \
--label com.example.foo=bar \
--label org.label-schema.vcs-url=https://github.com/nginxinc/docker-nginx \
--label org.label-schema.vcs-ref=sample-ref \
--name nginx -d -p 8081:80 nginx
docker run \
--label portainer \
--label com.example.bar=foo \
--label org.label-schema.vcs-url=https://github.com/portainer/portainer \
--label org.label-schema.vcs-ref=sample-ref \
--name portainer -v /var/run/docker.sock:/var/run/docker.sock \
-d -p 9000:9000 portainer/portainer
docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:rw \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
--label cadvisor \
--label org.label-schema.vcs-url=https://github.com/google/cadvisor \
--label org.label-schema.vcs-ref=sample-ref \
--label com.example.baz=qux \
google/cadvisor:latest
docker run --name postgres \
--label postgres \
--label com.example.qux=zoo \
--label org.label-schema.vcs-url=https://github.com/docker-library/postgres \
--label org.label-schema.vcs-ref=sample-ref \
-e POSTGRES_PASSWORD=password -d postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment