spinalcordtoolbox / sct_docker

Docker distribution of Spinal Cord Toolbox
3 stars 3 forks source link

Offline installation from generated tarball fails. #49

Open lrouhier opened 4 years ago

lrouhier commented 4 years ago

Description

offline load of docker images fails for different versions of sct (tested 4.2.1 and 4.0.0).

Steps to Reproduce

  1. System : Windows 10 home (tested on macOSx-catalina and windows 10 Pro as well)

  2. generate offline tarball with ./sct_docker_images.py generate --version 4.2.1 --distros ubuntu:18.04 --generate-distro-specific-sct-tarball

  3. run docker load --input sct-4.2.1-ubuntu-18.04-offline.tar

Expected behavior: Create docker images of sct 4.2.1

Actual behavior: return error : /var/lib/docker/tmp/docker-import-899321871/sct_4.2.1/json: no such file or directory which stop the creation of the container.


Temporary fix : to generate the offline archive do

  1. docker pull neuropoly/sct:latest
  2. docker save neuropoly/sct:latest > latest.tar

This archive can then be installed with docker load --input latest.tar