Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using docker volume

Using docker volume

myoung-su,shin

March 27, 2016
Tweet

More Decks by myoung-su,shin

Other Decks in Technology

Transcript

  1. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 2/9 Docker volume command $

    d o c k e r v o l u m e U s a g e : d o c k e r v o l u m e [ O P T I O N S ] [ C O M M A N D ] M a n a g e D o c k e r v o l u m e s C o m m a n d s : c r e a t e C r e a t e a v o l u m e i n s p e c t R e t u r n l o w - l e v e l i n f o r m a t i o n o n a v o l u m e l s L i s t v o l u m e s r m R e m o v e a v o l u m e docker volume을 관리할수 있는 interface가 추가되었음 (docker 1.9)
  2. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 3/9 Using docker 1.9 volume

    command $ d o c k e r v o l u m e c r e a t e - - n a m e = s c r i b e _ c o n f s c r i b e _ c o n f $ d o c k e r v o l u m e l s D R I V E R V O L U M E N A M E l o c a l s c r i b e _ c o n f $ d o c k e r v o l u m e i n s p e c t s c r i b e _ c o n f [ { " N a m e " : " s c r i b e _ c o n f " , " D r i v e r " : " l o c a l " , " M o u n t p o i n t " : " / v a r / l i b / d o c k e r / v o l u m e s / s c r i b e _ c o n f / _ d a t a " } ] $ d o c k e r v o l u m e r m s c r i b e _ c o n f s c r i b e _ c o n f $ d o c k e r v o l u m e l s D R I V E R V O L U M E N A M E
  3. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 4/9 Using docker volume $

    d o c k e r r u n - - n e t = h o s t - v s c r i b e _ c o n f : / e t c / s c r i b e a n a r c h e r / s c r i b e
  4. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 5/9 Deployment with docker volume

    $ d o c k e r r u n - i t - - r m - v s c r i b e _ c o n f : / c o n f a n a r c h e r / s c r i b e _ c o n f : 0 . 1 $ d o c k e r r u n - i t - - r m - - n e t = h o s t a n a r c h e r / s c r i b e _ c t r l r e l o a d docker-compose version 2 에서 docker volume interface을 제공한다
  5. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 6/9 Volume plugin driver $

    d o c k e r r u n - t i - v v o l u m e n a m e : / d a t a - - v o l u m e - d r i v e r = f l o c k e r b u s y b o x s h $ d o c k e r v o l u m e c r e a t e - h U s a g e : d o c k e r v o l u m e c r e a t e [ O P T I O N S ] C r e a t e a v o l u m e - d , - - d r i v e r = l o c a l S p e c i f y v o l u m e d r i v e r n a m e - - h e l p P r i n t u s a g e - - n a m e S p e c i f y v o l u m e n a m e - o , - - o p t = m a p [ ] S e t d r i v e r s p e c i f i c o p t i o n s
  6. 3/20/2016 Using docker volume http://localhost:3999/docker-volume.slide#7 7/9 Volume plugins https://docs.docker.com/engine/extend/plugins/ Rexray

    : https://github.com/emccode/rexray Convey : https://github.com/rancher/convoy Flocker : https://github.com/ClusterHQ/ ocker