load image exported with docker save <image>:<tag>
1 2 3 4 5 6 7 8 9
# ref: https://minikube.sigs.k8s.io/docs/commands/image/ # remember to set a tag to the image imported # or set the imagePullPolicy to Never # ref: https://iximiuz.com/en/posts/kubernetes-kind-load-docker-image/ minikube image load <image_filepath>/<docker_image_name> microk8s images import <image_filepath> microk8s ctr image import <image_filepath> k3s ctr image import <image_filepath>
The default directory after starting parrotsec container is the filesystem root directory, which cannot run msfconsole. Change to home directory using cd and run metasploit afterwards.
1 2
docker run --rm -it -w /root parrotsec/security
Symlinked files are not working properly from the start. Taking msfconsole for example, when running container from image parrotsec/security, it will get stuck if we immediately execute msfconsole once logged in, but we can mitigate the problem by first change into the directory where msfconsole really locates, then execute it from there.
1 2 3 4 5 6 7 8 9 10
docker run --rm -it parrotsec/security # it will stuck msfconsole # note the following will also stuck /usr/share/metasploit-framework/msfconsole # instead let's first change directory cd /usr/share/metasploit-framework # then invoke the binary ./msfconsole
--storage-opt is supported only for overlay over xfs with ‘pquota’ mount option.
change data-root to somewhere else in /etc/docker/daemon.json
edit /etc/fstab and add our xfs block on new line (find uuid using blkid)
1 2
docker run --storage-opt size=10M --rm -it alpine
when using devmapper make sure size is greater than 10G (default)
1 2
docker run --storage-opt size=11G --r'm -it alpine
zfs, vfs (not a unionfs, but for testing) storage drivers also supports disk quota. you may use it by changing data-root to the related storage device.