Re: [smartos-discuss] Is possible to use images from Docker hub?

2016-02-08 Thread Paolo Marcheschi

Hi
every day I work with smartos is like to work with magic, thanks to Joyent !!

Today i tried the tomcat image and with two command I had the lx docker tomcat 
running.
very interesting also the log of the lx root zone:

 #cat /var/log/sdc-dockerinit.log

2016-02-08T12:51:40.896Z MDATA sdc:brand=lx
2016-02-08T12:51:40.896Z REPLACE /etc/mtab
2016-02-08T12:51:40.896Z INFO setting up networking
2016-02-08T12:51:40.897Z INFO started ipmgmtd[49534]
2016-02-08T12:51:40.901Z INFO ipmgmtd[49534] exited: 0
2016-02-08T12:51:40.901Z PLUMB lo0
2016-02-08T12:51:40.901Z RAISE[lo0] addr=127.0.0.1, netmask=255.0.0.0
2016-02-08T12:51:40.904Z MDATA 
sdc:nics=[{"interface":"eth0","mac":"xx","vlan_id":xx,"nic_tag":"admin","gateway":"x","gateways":["xxx"],"netmask":"255.255.255.0","ip":"10.96.11.64","ips":["x"],"primary":true}]
2016-02-08T12:51:40.904Z PLUMB eth0
2016-02-08T12:51:40.905Z RAISE[eth0] addr=, netmask=255.255.255.0
2016-02-08T12:51:41.493Z ROUTE[eth0] gw=x, dst=0.0.0.0
2016-02-08T12:51:41.494Z MDATA sdc:routes=[]
2016-02-08T12:51:41.495Z INFO no metadata for 'docker:noipmgmtd'
2016-02-08T12:51:41.495Z INFO network setup complete
2016-02-08T12:51:41.496Z INFO no metadata for 'sdc:hostname'
2016-02-08T12:51:41.497Z INFO no metadata for 'docker:user'
2016-02-08T12:51:41.497Z INFO passwd.pw_name: root
2016-02-08T12:51:41.497Z INFO passwd.pw_uid: 0
2016-02-08T12:51:41.497Z INFO passwd.pw_gid: 0
2016-02-08T12:51:41.497Z INFO passwd.pw_dir: /root
2016-02-08T12:51:41.498Z INFO group.gr_name: root
2016-02-08T12:51:41.498Z INFO group.gr_gid: 0
2016-02-08T12:51:41.498Z INFO no metadata for 'docker:workdir'
2016-02-08T12:51:41.498Z WORKDIR '/'
2016-02-08T12:51:41.499Z INFO no metadata for 'docker:linkEnv'
2016-02-08T12:51:41.500Z INFO no metadata for 'docker:env'
2016-02-08T12:51:41.500Z ENV[0] TERM=xterm
2016-02-08T12:51:41.500Z ENV[1] HOME=/root
2016-02-08T12:51:41.500Z ENV[2] 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2016-02-08T12:51:41.501Z MDATA docker:entrypoint=["/bin/sleep"]
2016-02-08T12:51:41.501Z ARGV[0]:ENTRYPOINT "/bin/sleep"
2016-02-08T12:51:41.502Z MDATA docker:cmd=["3600"]
2016-02-08T12:51:41.502Z ARGV[1]:CMD "3600"
2016-02-08T12:51:41.503Z INFO no metadata for 'docker:tty'
2016-02-08T12:51:41.504Z INFO no metadata for 'docker:open_stdin'
2016-02-08T12:51:41.504Z SWITCHING TO /dev/zfd/*
2016-02-08T12:51:41.504Z INFO no metadata for 'docker:logdriver'
2016-02-08T12:51:41.504Z INFO logdriver json-file
2016-02-08T12:51:41.505Z INFO no metadata for 'docker:wait_for_attach'
2016-02-08T12:51:41.506Z EXECNAME "/bin/sleep"
2016-02-08T12:51:41.506Z DROP PRIVS


Ciao
Paolo

On 02/ 7/16 12:18 AM, David Preece wrote:



On 6/02/2016, at 11:04 PM, Paolo Marcheschi > wrote:

I have to figure out how to use the internal metadata directive in order to 
issue docker commands.


Have the definitive (?) reference: 
https://github.com/joyent/smartos-live/blob/master/src/dockerinit/src/dockerinit.c

Search for "docker:"

-Dave
*smartos-discuss* | Archives   | Modify  Your Subscription 	[Powered by Listbox] 








---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Is possible to use images from Docker hub?

2016-02-06 Thread Paolo Marcheschi

WOW !!
That's amazing they really work !!
Thank you Brian and Nahum !!

I have to figure out how to use the internal metadata directive in order to 
issue docker commands.

Thank you

Paolo




On 02/ 5/16 09:11 PM, Nahum Shalman wrote:

On 02/05/2016 11:18 AM, Paolo Marcheschi wrote:

Hi

Today i tried to investigate the possibility to use images from 
https://hub.docker.com/explore/
These are thousand of ready made apps.

And it seems that is possible by using the detailed instruction from this blog 
entry:

http://www.smllr.nl/2015/10/11/docker-on-smartos-a-retry/

I  downloaded the busybox and It runs very well

But when i try to  import more complex images like centos or wordpress, It 
downloads a lot of images :

54076c33-de2f-f996-3509-87b662e1ac95  docker-layer  77e39ee82117 linux
docker2016-01-25
3b3d6444-6381-bd39-455d-fb39e279eb2a  docker-layer  5eb1402f0414 linux
docker2016-01-25
db03997c-ea6f-038f-a367-3c22ffc17138  docker-layer  9287fae7a16e linux
docker2016-01-25
3fc33719-a2f9-0981-f7cf-83340f2d1ad6  docker-layer  e8eb9f547930 linux
docker2016-01-26
.

I guess thy are not usable in this form.

Is there a simple way to use them, or I need an SDC-TRITON infrastructure to 
play with them ?


You may be looking for the output of "imgadm list --docker" to help you 
identify the correct uuid...

-Nahum




---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Is possible to use images from Docker hub?

2016-02-05 Thread Brian Bennett
The image for the instance is the top most layer. It will probably be the last 
image downloaded by imgadm from the docker registry.

-- 
Brian Bennett
Systems Engineer, Cloud Operations
Joyent, Inc. | www.joyent.com

> On Feb 5, 2016, at 8:18 AM, Paolo Marcheschi  wrote:
> 
> Hi
> 
> Today i tried to investigate the possibility to use images from 
> https://hub.docker.com/explore/
> These are thousand of ready made apps.
> 
> And it seems that is possible by using the detailed instruction from this 
> blog entry:
> 
> http://www.smllr.nl/2015/10/11/docker-on-smartos-a-retry/
> 
> I  downloaded the busybox and It runs very well
> 
> But when i try to  import more complex images like centos or wordpress, It 
> downloads a lot of images :
> 
> 54076c33-de2f-f996-3509-87b662e1ac95  docker-layer  77e39ee82117 linux
> docker2016-01-25
> 3b3d6444-6381-bd39-455d-fb39e279eb2a  docker-layer  5eb1402f0414 linux
> docker2016-01-25
> db03997c-ea6f-038f-a367-3c22ffc17138  docker-layer  9287fae7a16e linux
> docker2016-01-25
> 3fc33719-a2f9-0981-f7cf-83340f2d1ad6  docker-layer  e8eb9f547930 linux
> docker2016-01-26
> .
> 
> I guess thy are not usable in this form.
> 
> Is there a simple way to use them, or I need an SDC-TRITON infrastructure to 
> play with them ?
> 
> Thank you
> 
> Paolo
> 


smime.p7s
Description: S/MIME cryptographic signature




---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Is possible to use images from Docker hub?

2016-02-05 Thread Nahum Shalman

On 02/05/2016 11:18 AM, Paolo Marcheschi wrote:

Hi

Today i tried to investigate the possibility to use images from 
https://hub.docker.com/explore/

These are thousand of ready made apps.

And it seems that is possible by using the detailed instruction from 
this blog entry:


http://www.smllr.nl/2015/10/11/docker-on-smartos-a-retry/

I  downloaded the busybox and It runs very well

But when i try to  import more complex images like centos or 
wordpress, It downloads a lot of images :


54076c33-de2f-f996-3509-87b662e1ac95  docker-layer  77e39ee82117 
linuxdocker2016-01-25
3b3d6444-6381-bd39-455d-fb39e279eb2a  docker-layer  5eb1402f0414 
linuxdocker2016-01-25
db03997c-ea6f-038f-a367-3c22ffc17138  docker-layer  9287fae7a16e 
linuxdocker2016-01-25
3fc33719-a2f9-0981-f7cf-83340f2d1ad6  docker-layer  e8eb9f547930 
linuxdocker2016-01-26

.

I guess thy are not usable in this form.

Is there a simple way to use them, or I need an SDC-TRITON 
infrastructure to play with them ?


You may be looking for the output of "imgadm list --docker" to help you 
identify the correct uuid...


-Nahum


---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com