Skip to content

alicefr/targetcli-containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create SCSI LUN disks in container

Use targetcli in containers.

Build the image

docker build -t targetcli -f Dockerfile .

Run the container and exec to create the disks

./start-container.sh
docker exec -ti targetclid bash
# Create LUN disk with fileio
targetcli backstores/fileio create disk1 /disks/disk.img 1G
targetcli loopback/ create 50014051998a423d
targetcli loopback/naa.50014051998a423d/luns create /backstores/fileio/disk1

About

Running targetcli in containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published