<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko"><generator uri="https://jekyllrb.com/" version="3.7.3">Jekyll</generator><link href="https://jinikr.github.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://jinikr.github.com/" rel="alternate" type="text/html" hreflang="ko" /><updated>2018-05-07T08:47:09+00:00</updated><id>https://jinikr.github.com/</id><title type="html">연습장 끄적끄적</title><subtitle>이것저것 잡다구리.</subtitle><author><name>youngjin kim</name><email>sto998@nate.com</email></author><entry><title type="html">tensorflow 개발환경 만들기 (docker 사용)</title><link href="https://jinikr.github.com/2018-05-05/tensorflow-dev-env" rel="alternate" type="text/html" title="tensorflow 개발환경 만들기 (docker 사용)" /><published>2018-05-05T00:00:00+00:00</published><updated>2018-05-05T00:00:00+00:00</updated><id>https://jinikr.github.com/2018-05-05/tensorflow-dev-env</id><content type="html" xml:base="https://jinikr.github.com/2018-05-05/tensorflow-dev-env">&lt;h3 id=&quot;docker-이미지&quot;&gt;docker 이미지&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;tensorflow/tensorflow:latest-py3&lt;br /&gt;
python3 사용
&lt;a href=&quot;https://hub.docker.com/r/tensorflow/tensorflow/&quot;&gt;https://hub.docker.com/r/tensorflow/tensorflow/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://jinikr.github.io/2018-05-05/golang-dev-env&quot;&gt;docker를 사용한 golang 개발환경 만들기 참고&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;hello-world&quot;&gt;hello world&lt;/h3&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  &lt;span class=&quot;c&quot;&gt;# 현재 디렉토리에 example download&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git clone https://github.com/jinikr/tensorflow-excersice &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  Cloning into &lt;span class=&quot;s1&quot;&gt;'.'&lt;/span&gt;...
  remote: Counting objects: 6, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  remote: Compressing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;4/4&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  remote: Total 6 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 6 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, pack-reused 0
  Unpacking objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;6/6&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;

  &lt;span class=&quot;c&quot;&gt;# docker 실행 (docker-compose 사용)&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker-compose up &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;
  Creating network &lt;span class=&quot;s2&quot;&gt;&quot;tensorflow-excersice_default&quot;&lt;/span&gt; with the default driver
  Building golang-dev
  Step 1/2 : FROM tensorflow/tensorflow:latest-py3
  latest-py3: Pulling from tensorflow/tensorflow
  297061f60c36: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;e9ccef17b516: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;dbc33716854d: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;8fe36b178d25: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;686596545a94: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;11251ff8ca17: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;632ad5221740: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;c61bc0eaf8d9: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;f5e02d7ae67a: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;f29a5775b72a: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;c9bf16bc9d22: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;d4423e297b68: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;418a4217796d: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;02b18d984060: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;Digest: sha256:24b533d6db08369375f85b7d8da0e7d8c35c105337a7f6fa71947195b900eec9
  Status: Downloaded newer image &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;tensorflow/tensorflow:latest-py3
  &lt;span class=&quot;nt&quot;&gt;---&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; a83a3dd79ff9
  Step 2/2 : RUN pip install &lt;span class=&quot;s2&quot;&gt;&quot;h5py==2.8.0rc1&quot;&lt;/span&gt;     &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;TF_CPP_MIN_LOG_LEVEL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;2
  &lt;span class=&quot;nt&quot;&gt;---&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; Running &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;7d944f6ed0e3
  Collecting &lt;span class=&quot;nv&quot;&gt;h5py&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;2.8.0rc1
    Downloading https://files.pythonhosted.org/packages/00/26/4bbf836d3a32d91b0bec3a7533d27abcd13aeafb68fc7cbfdf3ff792758b/h5py-2.8.0rc1-cp35-cp35m-manylinux1_x86_64.whl &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;2.4MB&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
  ^@Requirement already satisfied: numpy&amp;gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1.7 &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /usr/local/lib/python3.5/dist-packages &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;from &lt;span class=&quot;nv&quot;&gt;h5py&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;2.8.0rc1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;1.14.2&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
  Requirement already satisfied: six &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /usr/local/lib/python3.5/dist-packages &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;from &lt;span class=&quot;nv&quot;&gt;h5py&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;2.8.0rc1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;1.11.0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
  Installing collected packages: h5py
    Found existing installation: h5py 2.7.1
      Uninstalling h5py-2.7.1:
        Successfully uninstalled h5py-2.7.1
  Successfully installed h5py-2.8.0rc1
  Removing intermediate container 7d944f6ed0e3
  &lt;span class=&quot;nt&quot;&gt;---&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; 57bc8e411f5d
  Successfully built 57bc8e411f5d
  Successfully tagged tf-dev:0.1
  WARNING: Image &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;service golang-dev was built because it did not already exist. To rebuild this image you must use &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;docker-compose build&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt; or &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;docker-compose up &lt;span class=&quot;nt&quot;&gt;--build&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  Creating tf-dev ... &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;

  &lt;span class=&quot;c&quot;&gt;# docker 컨테이너 확인&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker ps
  CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                NAMES
  95fa37fdd8a4        tf-dev:0.1              &lt;span class=&quot;s2&quot;&gt;&quot;/run_jupyter.sh --a…&quot;&lt;/span&gt;   About an hour ago   Up About an hour    6006/tcp, 8888/tcp   tf-dev

  &lt;span class=&quot;c&quot;&gt;# docker 컨테이너의 bash 접속&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker &lt;span class=&quot;nb&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-it&lt;/span&gt; tf-dev bash
  root@95fa37fdd8a4:/var/app#

  &lt;span class=&quot;c&quot;&gt;# hello world 테스트&lt;/span&gt;
  root@95fa37fdd8a4:/var/app# &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;01.&lt;span class=&quot;se&quot;&gt;\ &lt;/span&gt;hello-world/
  root@95fa37fdd8a4:/var/app/01. hello-world# python hello-world.py
  Tensor&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Const:0&quot;&lt;/span&gt;, &lt;span class=&quot;nv&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=()&lt;/span&gt;, &lt;span class=&quot;nv&quot;&gt;dtype&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;string&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
  2018-05-05 12:11:27.978539: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
  b&lt;span class=&quot;s1&quot;&gt;'Hello, Tensor.'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;부록&quot;&gt;부록&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;경고메세지 보기싫으면..
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;TF_CPP_MIN_LOG_LEVEL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>yjk</name></author><summary type="html">docker 이미지 tensorflow/tensorflow:latest-py3 python3 사용 https://hub.docker.com/r/tensorflow/tensorflow/ docker를 사용한 golang 개발환경 만들기 참고</summary></entry><entry><title type="html">golang 개발환경 만들기 (docker 사용)</title><link href="https://jinikr.github.com/2018-05-05/golang-dev-env" rel="alternate" type="text/html" title="golang 개발환경 만들기 (docker 사용)" /><published>2018-05-05T00:00:00+00:00</published><updated>2018-05-05T00:00:00+00:00</updated><id>https://jinikr.github.com/2018-05-05/golang-dev-env</id><content type="html" xml:base="https://jinikr.github.com/2018-05-05/golang-dev-env">&lt;h3 id=&quot;docker-설치&quot;&gt;docker 설치.&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;커뮤니티에디션 설치&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.docker.com/community-edition#/download&quot;&gt;https://www.docker.com/community-edition#/download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;docker-이미지-고르기&quot;&gt;docker 이미지 고르기&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://hub.docker.com/_/golang/&quot;&gt;https://hub.docker.com/_/golang/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;stretch(Debian 9) 을 사용하자.&lt;br /&gt;
golang:1.10.1-stretch&lt;/li&gt;
  &lt;li&gt;alpine 계열은 가볍고… 가볍지만, 개발환경으로 사용하기엔 불편.&lt;br /&gt;
패키지관리자도 익숙하지 않고, bash도 없고.. 물론 설치하고 익숙해지면 되지만, 일단 익숙한걸로 사용하자.&lt;br /&gt;
&lt;a href=&quot;https://www.lesstif.com/pages/viewpage.action?pageId=35356819&quot;&gt;https://www.lesstif.com/pages/viewpage.action?pageId=35356819&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;docker-실행하기&quot;&gt;docker 실행하기&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;이미지를 받아서 실행하자.
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker pull golang:1.10.1-stretch
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker run &lt;span class=&quot;nt&quot;&gt;-w&lt;/span&gt; /var/app &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;:/var/app &lt;span class=&quot;nt&quot;&gt;--name&lt;/span&gt; golang-dev &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-t&lt;/span&gt; golang:1.10.1-stretch bash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;컨테이너 삭제 명령
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker rm golang-dev
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;docker-compose-활용&quot;&gt;docker-compose 활용&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;docker-compose를 사용하자 (docker에 포함되어 이미 설치되어 있을것임.)&lt;br /&gt;
&lt;a href=&quot;https://docs.docker.com/compose/&quot;&gt;https://docs.docker.com/compose/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;실행
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker-compose up &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;docker-compose로 실행된 docker container에 접속하자.
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker &lt;span class=&quot;nb&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-it&lt;/span&gt; golang-dev bash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;종료
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker-compose down
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;hello-world&quot;&gt;hello world&lt;/h3&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  &lt;span class=&quot;c&quot;&gt;# 현재 디렉토리에 example download&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git clone https://github.com/jinikr/golang-exercise &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  Cloning into &lt;span class=&quot;s1&quot;&gt;'.'&lt;/span&gt;...
  remote: Counting objects: 13, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  remote: Compressing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;7/7&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
  remote: Total 13 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 7 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, pack-reused 0
  Unpacking objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;13/13&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;

  &lt;span class=&quot;c&quot;&gt;# docker 실행 (docker-compose 사용)&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker-compose up &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;
  Pulling golang-dev &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;golang:1.10.1-stretch&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;...
  1.10.1-stretch: Pulling from library/golang
  cc1a78bfd46b: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;53c14872d997: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;99ae159b9cae: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;66cbf2b79699: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;a16f46d95485: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;f235c5ef7891: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;cdd98e20e590: Pull &lt;span class=&quot;nb&quot;&gt;complete
  &lt;/span&gt;Digest: sha256:e7331dea607f66adb0d597f43d7cb9cdc36ac73cff56536bde3311b46c5186e9
  Status: Downloaded newer image &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;golang:1.10.1-stretch
  Creating golang-dev ... &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;

  &lt;span class=&quot;c&quot;&gt;# docker 컨테이너 확인&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker ps
  CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS              PORTS               NAMES
  5a40fb644fbd        golang:1.10.1-stretch   &lt;span class=&quot;s2&quot;&gt;&quot;bash&quot;&lt;/span&gt;              43 seconds ago      Up 42 seconds                           golang-dev

  &lt;span class=&quot;c&quot;&gt;# docker 컨테이너의 bash 접속&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker &lt;span class=&quot;nb&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-it&lt;/span&gt; golang-dev bash
  root@5a40fb644fbd:/var/app#

  &lt;span class=&quot;c&quot;&gt;# hello world 테스트&lt;/span&gt;
  root@5a40fb644fbd:/var/app# &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;01.&lt;span class=&quot;se&quot;&gt;\ &lt;/span&gt;hello-world/
  root@5a40fb644fbd:/var/app/01. hello-world# go run hello-world.go
  hello, world
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;부록&quot;&gt;부록&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;docker cli 관련&lt;br /&gt;
&lt;a href=&quot;https://docs.docker.com/engine/reference/commandline/cli/&quot;&gt;https://docs.docker.com/engine/reference/commandline/cli/&lt;/a&gt;
    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# docker container 조회&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker ps
&lt;span class=&quot;c&quot;&gt;# 종료된 컨테이너도 확인하려면 -a 옵션을 붙인다.)&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker ps &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# docker image 확인&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker images

&lt;span class=&quot;c&quot;&gt;# docker image 삭제&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker rmi &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;image name&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 미사용 이미지 정리&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker image prune
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>yjk</name></author><summary type="html">docker 설치. 커뮤니티에디션 설치 https://www.docker.com/community-edition#/download</summary></entry><entry><title type="html">test!!!</title><link href="https://jinikr.github.com/2018-05-02/test" rel="alternate" type="text/html" title="test!!!" /><published>2018-05-02T00:00:00+00:00</published><updated>2018-05-02T00:00:00+00:00</updated><id>https://jinikr.github.com/2018-05-02/test</id><content type="html" xml:base="https://jinikr.github.com/2018-05-02/test">&lt;h1 id=&quot;test&quot;&gt;test&lt;/h1&gt;</content><author><name>yjk</name></author><summary type="html">test</summary></entry></feed>