{"id":385,"date":"2015-11-11T15:51:47","date_gmt":"2015-11-11T15:51:47","guid":{"rendered":"http:\/\/onlinelab.info\/?p=385"},"modified":"2015-11-11T15:51:47","modified_gmt":"2015-11-11T15:51:47","slug":"docker-part3-cai-dat-docker-tren-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/11\/11\/docker-part3-cai-dat-docker-tren-ubuntu-14-04\/","title":{"rendered":"[Docker]- Part3 \u2013 C\u00e0i \u0111\u1eb7t Docker tr\u00ean Ubuntu 14.04"},"content":{"rendered":"<p>Ti\u1ebfp theo lo\u1ea1t b\u00e0i v\u1ec1 Docker, m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1c c\u00e0i \u0111\u1eb7t Docker tr\u00ean Ubuntu 14.04 (v\u00ec m\u00ecnh s\u1eed d\u1ee5ng phi\u00ean b\u1ea3n n\u00e0y).<\/p>\n<p>1, \u0110\u0103ng nh\u1eadp v\u00e0o user c\u00f3 th\u1ec3 th\u1ef1c thi c\u00e2u l\u1ec7nh <strong>sudo<\/strong> v\u1edbi quy\u1ec1n admin.<\/p>\n<p>2, Ki\u1ec3m tra xem curl \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t hay ch\u01b0a<\/p>\n<blockquote><p>$ which curl<\/p><\/blockquote>\n<p>n\u1ebfu <strong>curl<\/strong> ch\u01b0a \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t, th\u00ec th\u1ef1c thi c\u00e2u l\u1ec7nh sau \u0111\u1ec3 c\u00e0i \u0111\u1eb7t n\u00f3.<\/p>\n<blockquote><p>$ sudo apt-get update<\/p>\n<p>$\u00a0sudo apt-<span class=\"hljs-built_in\">get<\/span> install curl<\/p><\/blockquote>\n<p>3, T\u1ea3i v\u1ec1 phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t c\u1ee7a <strong>Docker<\/strong> Package.<\/p>\n<blockquote><p>$ curl -sSL http<span class=\"hljs-variable\">s:<\/span>\/\/<span class=\"hljs-built_in\">get<\/span>.docker.<span class=\"hljs-keyword\">com<\/span>\/ | <span class=\"hljs-keyword\">sh<\/span><\/p><\/blockquote>\n<p>Th\u1ef1c thi c\u00e2u l\u1ec7nh, n\u1ebfu h\u1ec7 \u0111i\u1ec1u h\u00e0nh y\u00eau c\u1ea7u quy\u1ec1n admin. Th\u00ec h\u00e3y th\u1ef1c thi n\u00f3 v\u1edbi c\u00e2u l\u1ec7nh <strong>sudo<\/strong>.<\/p>\n<p>N\u1ebfu b\u1ecb l\u1ed7i v\u1ec1 <strong>proxy<\/strong>, h\u00e3y th\u1ef1c thi c\u00e2u l\u1ec7nh n\u00e0y tr\u01b0\u1edbc khi th\u1ef1c hi\u1ec7n c\u00e2u l\u1ec7nh tr\u00ean.<\/p>\n<blockquote><p>$ curl -sSL http<span class=\"hljs-variable\">s:<\/span>\/\/<span class=\"hljs-built_in\">get<\/span>.docker.<span class=\"hljs-keyword\">com<\/span>\/gpg | sudo apt-key <span class=\"hljs-built_in\">add<\/span> \u2013<\/p><\/blockquote>\n<p>4, Ki\u1ec3m tra xem <strong>docker<\/strong> \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t m\u1ed9t c\u00e1ch ho\u00e0n ch\u1ec9nh ch\u01b0a.<\/p>\n<blockquote><p>$ sudo docker <span class=\"hljs-built_in\">run<\/span> hello-world<\/p><\/blockquote>\n<p>H\u1ec7 th\u1ed1ng s\u1ebd tr\u1ea3 v\u1ec1 n\u1ed9i dung c\u1ee7a g\u00f3i <strong>hello<\/strong>\u2013<strong>world<\/strong> tr\u00ean m\u00e0n h\u00ecnh.<br \/>\nCh\u00fac b\u1ea1n th\u00e0nh c\u00f4ng<\/p>\n<p>Ph\u1ea7n ti\u1ebfp theo c\u1ee7a lo\u1ea1t b\u00e0i v\u1ec1 <strong>docker<\/strong> s\u1ebd \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u1ea1i \u0111\u00e2y.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ti\u1ebfp theo lo\u1ea1t b\u00e0i v\u1ec1 Docker, m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1c c\u00e0i \u0111\u1eb7t Docker tr\u00ean Ubuntu 14.04 (v\u00ec m\u00ecnh s\u1eed d\u1ee5ng phi\u00ean b\u1ea3n n\u00e0y). 1, \u0110\u0103ng nh\u1eadp v\u00e0o user c\u00f3 th\u1ec3 th\u1ef1c thi&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/385\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}