On Thu, Jun 25, 2015 at 2:36 PM, Punnadi Gunarathna <[email protected]>
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
> [email protected]
> 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/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to