| Summary: | Docker save/load fails | ||
|---|---|---|---|
| Product: | Container Development Kit (CDK) | Reporter: | Rich Lucente <rlucente> |
| Component: | vms | Assignee: | Lalatendu Mohanty <lmohanty> |
| Status: | NEW --- | QA Contact: | Ondřej Pták <optak> |
| Severity: | high | Docs Contact: | Robert Krátký <rkratky> |
| Priority: | high | ||
| Version: | 2.1 | CC: | jgreguske, kanderso, mepley, timoran |
| Target Milestone: | --- | ||
| Target Release: | 2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Rich Lucente
2016-09-09 15:40:05 UTC
Any attempt to save an untagged image will succeed but load will fail This same issue happens with other software we ship. For example,
sudo oc -n openshift import-image jboss-amq-62
oc new-app jboss-amq-62 --name=broker -l name=broker
will also pull an untagged image for jboss-amq-62 and docker save/load will fail for that. Full steps:
vagrant destroy
vagrant up
vagrant ssh
sudo oc login 10.1.2.2:8443 -u admin
... password is 'admin' ...
sudo oc -n openshift import-image jboss-amq-62
oc login 10.1.2.2:8443 -u openshift-dev
... password is 'devel' ...
oc new-app jboss-amq-62 --name=broker -l name=broker
... wait for that to deploy/run ...
oc delete all --all
docker save jboss-amq-6/amq62-openshift > amq62-openshift.tar
docker rmi -f 563bd64603e2
... basically remove the amq62 image ...
docker load < amq62-openshift.tar
Error response from daemon: Illegal tag name (sha256:0a25571f68bd5951fd2d7b6467afa5e628345bc7d4e5a85872d4d9113039217a): only [A-Za-z0-9_.-] are allowed ('.' and '-' are NOT allowed in the initial), minimum 1, maximum 128 in length
If I substitute the following in comment 2: sudo oc -n openshift import-image jboss-amq-62:latest oc new-app jboss-amq-62:latest --name=broker -l name=broker The image is still pulled by the builder as untagged. docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE registry.access.redhat.com/jboss-amq-6/amq62-openshift <none> 563bd64603e2 7 weeks ago 604.1 MB So save/load will still fail. I also run into similar errors when I use private/locally deployed registries with simple hostnames (such as "registry"). This appears to be a docker parse issue with the tag; when I qualify my registry hostnames (in the docker configuration, tag names, etc) with a port (like "registry:5000") this appears to force the parsing to occur correctly. This may be a similar effect, as it looks like similar error, though here except it is affecting the tag. Interesting... I just tried instructions in comment 2 with nightly build of cdk for OCP 3.3. Docker load worked however docker images returned: REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 83eeaffd87f2 2 weeks ago 604 MB for saved amq-62 image. Both image id and tag are <none>. $ sudo yum list installed | grep docker docker.x86_64 1.10.3-57.el7 @koji-override-0/7.2 docker-common.x86_64 1.10.3-57.el7 @koji-override-0/7.2 docker-rhel-push-plugin.x86_64 1.10.3-57.el7 @koji-override-0/7.2 docker-selinux.x86_64 1.10.3-57.el7 @koji-override-0/7.2 python-docker-py.noarch 1.9.0-1.el7 @koji-override-0/7.2 > for saved amq-62 image. Both image id and tag are <none>.
meant that repository and tag are <none>.
|