Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 650 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 650 Bytes

yourlabs.docker Ansible role

One-liner to run dockerd with a firewall:

bigsudo yourlabs.docker @host

Best to run after bigsudo yourlabs.ssh @host.

Extra BigSudo Commands

Install a yourlabs-docker-prune systemd timer:

bigsudo yourlabs.docker prunecron @host

Will run docker system prune --all --force --volumes every night at midnight.

For prune only one time, run:

bigsudo yourlabs.docker prune @host

Vagrant/VirtualBox

You can work in a VM if you have vagrant:

cd yourlabs.docker && vagrant destroy -f && vagrant up
vagrant ssh-config > ssh && bigsudo . @default --ssh-common-args="-F ssh" -v