qnap-dev / container-apps

Apache License 2.0
80 stars 218 forks source link

Pull Image from Private Registry directory limitations #63

Open fdamador opened 6 years ago

fdamador commented 6 years ago

The Images can be within folders. In my case two levels in and because of the Image Name Field Validation rules, it does not allow "/". As a result, I get errors when I try to pull images from a private repository.

As an example, I have my private repository (other than docker) setup and tested properly. registry.example.com/folder1/subfolder2/image:latest However, it errors out. I've tried foder1/subfoler2/image:latest but this also fails.

Finally, I tried to export the docker image from my computer to import to the ContainerStation apps but the tar file contents are different.

  1. Can you allow email verification for the registry username validation?
  2. Can you allow "/" as part of the image pull from registry validation image input?
  3. Can you give some examples of matching the containerstation export/import with the docker export/import features?
ColinHuang commented 5 years ago
  1. What kind of registry you are using? Container Station are base under Docker Hub. Docker Hub's username must contain only letters and digits. We will look into it.

  2. "/" is allow in the middle of image name but not start with "/". Because in image pull dialog we will automatically append image name after registry's URL. i.e. Registry URL: example.registry.com Image name: username/subfolder/imagename Will pull example.registry.com/username/subfolder/imagename image

  3. Export image and import it into Container Station a. export image from other device docker save ubuntu > ubuntu-save.tar b. import from GUI or from command line docker load --input ubuntu-save.tar

    Export container and import it into Container Station a. export container from other device docker export angry_fermi > container.tar b. import from GUI or from command line docker import container.tar image_name:latest