Hi All,

This worked after setting the tag name instead of image id while saving the
docker image to tar.gz as follows:

docker save -o x.tar.gz wso2/as

Thanks Lakmal, Imesh &  Lahiru.

On Thu, Jun 25, 2015 at 3:15 PM, Lakmal Warusawithana <lak...@wso2.com>
wrote:

> Delete forcefully, otherwise it will retry to pull from docker hub
>
> On Thu, Jun 25, 2015 at 2:51 PM, Punnadi Gunarathna <punn...@wso2.com>
> wrote:
>
>> Hi Nirmal,
>>
>> I deleted and retried. Still the same result.
>>
>> REPOSITORY                       TAG                 IMAGE ID
>> CREATED             VIRTUAL SIZE
>> <none>                           <none>              5ed32fb55862
>> 2 hours ago         1.23 GB
>> stratos/php                      4.1.0               297de547e1a6
>> 4 weeks ago         414.8 MB
>> gcr.io/google_containers/pause   0.8.0               2c40b0526b63
>> 12 weeks ago        241.7 kB
>> fnichol/uhttpd                   latest              f705d30ea473
>> 12 months ago       4.866 MB
>>
>>
>>
>>
>> On Thu, Jun 25, 2015 at 2:41 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>>
>>>
>>>
>>> On Thu, Jun 25, 2015 at 2:36 PM, Punnadi Gunarathna <punn...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have a vm which already contains a wso2/as 5.2.1 docker image pulled
>>>> from Docker Hub.
>>>> I wanted to locally build a docker image(wso2/as 5.2.1) and replace the
>>>> existing one in that vm.
>>>> Here are the steps I have followed:
>>>>
>>>> 1. First locally built the image
>>>>
>>>> REPOSITORY          TAG                 IMAGE ID
>>>> CREATED             VIRTUAL SIZE
>>>> wso2/as                      5.2.1               5ed32fb55862        2
>>>> hours ago         1.23 GB
>>>> wso2/base-image     4.1.0               3195b060c979        3 days
>>>> ago          385.1 MB
>>>>
>>>> 2. Created a tar.gz as follows with a Docker Image Id:
>>>> docker save -o x.tar.gz 5ed32fb55862
>>>>
>>>> 3. scp the file to VM.
>>>>
>>>> 4. Load the file in VM as follows:
>>>> docker load -i x.tar.gz
>>>>
>>>> REPOSITORY
>>>> TAG                 IMAGE ID                 CREATED           VIRTUAL SIZE
>>>> <none>
>>>> <none>             5ed32fb55862        2 hours ago         1.23 GB
>>>> wso2/as
>>>> 5.2.1               a5a5d78134a3        27 hours ago        1.23 GB
>>>> stratos/php
>>>> 4.1.0               297de547e1a6        4 weeks ago         414.8 MB
>>>> gcr.io/google_containers/pause              0.8.0
>>>> 2c40b0526b63        12 weeks ago        241.7 kB
>>>> fnichol/uhttpd
>>>> latest              f705d30ea473        12 months ago       4.866 MB
>>>>
>>>>
>>>> As depicted above, instead of replacing the wso2/as:5.2.1 entry, a new
>>>> entry got added with <none> set to REPOSITORY & TAG.
>>>> What have I missed in the steps I followed.
>>>>
>>>
>>> You could delete the existing image before loading :-)
>>>
>>>>
>>>> Please advice.
>>>>
>>>>
>>>> --
>>>> Thanks and Regards,
>>>>
>>>> Punnadi Gunarathna
>>>> Senior Software Engineer,
>>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>>> Blog: http://hi-my-world.blogspot.com/
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>>
>>>>
>>>>
>>>>  <http://lalajisureshika.blogspot.com/>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Punnadi Gunarathna
>> Senior Software Engineer,
>> WSO2, Inc.; http://wso2.com <http://wso2>
>> Blog: http://hi-my-world.blogspot.com/
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>>
>>  <http://lalajisureshika.blogspot.com/>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com <http://wso2>
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



 <http://lalajisureshika.blogspot.com/>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to