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

開発環境でDocker使ってみた

danny
June 01, 2014

 開発環境でDocker使ってみた

danny

June 01, 2014
Tweet

More Decks by danny

Other Decks in Technology

Transcript

  1. DFOUPTͷΠϝʔδΛऔಘ vagrant@packer-virtualbox:~$ sudo docker pull centos:latest! Pulling repository centos! 0b443ba03958:

    Download complete! 511136ea3c5a: Download complete! 7064731afe90: Download complete
  2. ίϛοτπϦʔ vagrant@packer-virtualbox:~$ sudo docker images --tree! Warning: '--tree' is deprecated,

    it will be removed soon. See usage.! !"511136ea3c5a Virtual Size: 0 B! !"7064731afe90 Virtual Size: 0 B! !"0b443ba03958 Virtual Size: 297.6 MB Tags: centos:latest
  3. ίϯςφJEΛௐ΂Δ vagrant@packer-virtualbox:~$ sudo docker ps -a! CONTAINER ID IMAGE COMMAND

    CREATED STATUS cf0ce15d1779 centos:latest /bin/bash About a minute ago Exited (0) 59 seconds ago
  4. ίϛοτϩάΛ֬ೝ vagrant@packer-virtualbox:~$ sudo docker images --tree! Warning: '--tree' is deprecated,

    it will be removed soon. See usage.! !"511136ea3c5a Virtual Size: 0 B! !"7064731afe90 Virtual Size: 0 B! !"0b443ba03958 Virtual Size: 297.6 MB! !"a91759364e61 Virtual Size: 297.6 MB Tags: centos:latest vagrant@packer-virtualbox:~$ sudo docker images --tree! Warning: '--tree' is deprecated, it will be removed soon. See usage.! !"511136ea3c5a Virtual Size: 0 B! !"7064731afe90 Virtual Size: 0 B! !"0b443ba03958 Virtual Size: 297.6 MB Tags: centos:latest ίϛοτલ ίϛοτޙ
  5. -JOVY؀ڥͱҧ͏఺ vagrant@packer-virtualbox:~$ sudo docker run -t -i centos /bin/bash! bash-4.1#

    cat /etc/redhat-release! CentOS release 6.5 (Final)! bash-4.1# uname -a! Linux b5f016f859fe 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug w Χʔωϧ͸ϗετ04ͷ෺Λ࢖͏