Skip to content

Instantly share code, notes, and snippets.

View mattsmithdatera's full-sized avatar

Matt Smith (_alastor_) mattsmithdatera

View GitHub Profile
@j-griffith
j-griffith / docker-iscsi
Last active February 2, 2022 16:45
Docker iscsi in container run cmd
# This will use the hosts iscsid
docker run -it --net=host --privileged -v /etc/localtime:/etc/localtime:ro \
-v /lib/modules:/lib/modules:ro \
-v /run:/run:shared -v /dev:/dev \
-v /etc/iscsi:/etc/iscsi \
-v /home/jgriffith/vol:/Mount:shared ubuntu bash
# shared declaration on Mount matters!
# You can also put iscsid in another container, share the socket