Todo : Handle symlink error when image file/folder already exists
Closed this issue · 2 comments
$ go build -o cig && sudo ./cig run ubuntu:latest /bin/bash
2021/10/28 16:39:02 Cmd args: [./cig run ubuntu:latest /bin/bash]
2021/10/28 16:39:02 Bridge set up succesfully!
2021/10/28 16:39:02 New container ID: a94421530765
2021/10/28 16:39:02 Downloading metadata for ubuntu:latest, please wait...
2021/10/28 16:39:04 imageHash: ba6acccedd29
2021/10/28 16:39:04 Checking if image exists under another name...
2021/10/28 16:39:04 Image doesn't exist. Downloading...
2021/10/28 16:39:05 Successfully downloaded ubuntu:latest
2021/10/28 16:39:05 Uncompressing layer to: /var/lib/cig/images/ba6acccedd29/7b1a6ab2e44d/fs
2021/10/28 16:39:06 Unable to untar layer file: /var/lib/cig/tmp/ba6acccedd29/7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54.tar.gz: link /var/lib/cig/images/ba6acccedd29/7b1a6ab2e44d/fs/usr/bin/bunzip2 /var/lib/cig/images/ba6acccedd29/7b1a6ab2e44d/fs/usr/bin/bzcat: file exists
Verify that its working on your systems.
LGTM