{"id":714,"date":"2016-09-26T06:42:12","date_gmt":"2016-09-26T06:42:12","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=714"},"modified":"2016-09-26T07:39:55","modified_gmt":"2016-09-26T07:39:55","slug":"docker-installation","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/09\/26\/docker-installation\/","title":{"rendered":"Docker Installation"},"content":{"rendered":"<p>For linux, download from <a href=\"http:\/\/docs.docker.com\/engine\/installation\/linux\/\" target=\"_blank\">http:\/\/docs.docker.com\/engine\/installation\/linux\/<\/a>. For Ubuntu, read and follow the step <a href=\"https:\/\/docs.docker.com\/engine\/installation\/linux\/ubuntulinux\/\" target=\"_blank\">here<\/a>.<\/p>\n<ol>\n<li>Check the kernel machine. The kernel should be newer than 3.1. Also docker requires 64-bit Ubuntu.\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ uname -r\r\n4.4.0-38-generic<\/pre>\n<p>My kernel version is 4.4.0-38 (<span style=\"background-color: #008000;\">PASS<\/span>)<\/li>\n<li>Update APT source<br \/>\nUpdate system<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get update<\/pre>\n<p>Update package information, ensure that APT works with the https method, and that CA certificates are installed.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ sudo apt-get install apt-transport-https ca-certificates\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\napt-transport-https is already the newest version.\r\nca-certificates is already the newest version.\r\nca-certificates set to manually installed.<\/pre>\n<p>Add the new GPG key<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ sudo apt-key adv --keyserver hkp:\/\/p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\nExecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir \/tmp\/tmp.WSnymkJUMh --no-auto-check-trustdb --trust-model always --keyring \/etc\/apt\/trusted.gpg --primary-keyring \/etc\/apt\/trusted.gpg --keyring \/etc\/apt\/trusted.gpg.d\/alexmurray-indicator-sensors-daily.gpg --keyring \/etc\/apt\/trusted.gpg.d\/bhdouglass-indicator-remindor.gpg --keyring \/etc\/apt\/trusted.gpg.d\/damien-moore-codeblocks-stable.gpg --keyring \/etc\/apt\/trusted.gpg.d\/danielrichter2007-grub-customizer.gpg --keyring \/etc\/apt\/trusted.gpg.d\/font-manager-staging.gpg --keyring \/etc\/apt\/trusted.gpg.d\/geany-dev-ppa.gpg --keyring \/etc\/apt\/trusted.gpg.d\/george-edison55-nitroshare.gpg --keyring \/etc\/apt\/trusted.gpg.d\/jfi-psensor-unstable.gpg --keyring \/etc\/apt\/trusted.gpg.d\/kirillshkrogalev-ffmpeg-next.gpg --keyring \/etc\/apt\/trusted.gpg.d\/linrunner-tlp.gpg --keyring \/etc\/apt\/trusted.gpg.d\/maarten-baert-simplescreenrecorder.gpg --keyring \/etc\/apt\/trusted.gpg.d\/mc3man-trusty-media.gpg --keyring \/etc\/apt\/trusted.gpg.d\/n-muench-programs-ppa2.gpg --keyring \/etc\/apt\/trusted.gpg.d\/obsproject-obs-studio.gpg --keyring \/etc\/apt\/trusted.gpg.d\/ondrej-php.gpg --keyring \/etc\/apt\/trusted.gpg.d\/ondrej-php5-5_6.gpg --keyring \/etc\/apt\/trusted.gpg.d\/ondrej-php5-compat.gpg --keyring \/etc\/apt\/trusted.gpg.d\/osmoma-audio-recorder.gpg --keyring \/etc\/apt\/trusted.gpg.d\/recoll-backports-recoll-1_15-on.gpg --keyring \/etc\/apt\/trusted.gpg.d\/tsvetko_tsvetkov-trusty-backports.gpg --keyring \/etc\/apt\/trusted.gpg.d\/tuxonice-ppa.gpg --keyring \/etc\/apt\/trusted.gpg.d\/ubuntu-audio-dev-alsa-daily.gpg --keyring \/etc\/apt\/trusted.gpg.d\/umang-indicator-stickynotes.gpg --keyring \/etc\/apt\/trusted.gpg.d\/webupd8team-brackets.gpg --keyring \/etc\/apt\/trusted.gpg.d\/webupd8team-java.gpg --keyring \/etc\/apt\/trusted.gpg.d\/wine-wine-builds.gpg --keyring \/etc\/apt\/trusted.gpg.d\/xorg-edgers-ppa.gpg --keyserver hkp:\/\/p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\ngpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net\r\n?: p80.pool.sks-keyservers.net: Host not found\r\ngpgkeys: HTTP fetch error 7: couldn't connect: Success\r\ngpg: no valid OpenPGP data found.\r\ngpg: Total number processed: 0<\/pre>\n<p>Then Open the \/etc\/apt\/sources.list.d\/docker.list file in your favorite editor. If the file doesn\u2019t exist, create it.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ sudo gedit \/etc\/apt\/sources.list.d\/docker.list<\/pre>\n<p>Make sure the file is empty or remove any existing entries. Add this on file for Ubuntu Trusty 14.04 (LTS)<\/p>\n<pre class=\"lang:default decode:true \">deb https:\/\/apt.dockerproject.org\/repo ubuntu-trusty main<\/pre>\n<p>Save and close the file.<br \/>\nUpdate the system<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get update<\/pre>\n<p>Purge the old repo if it exists.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ sudo apt-get purge lxc-docker\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nPackage 'lxc-docker' is not installed, so not removed\r\n...<\/pre>\n<p>Verify that APT is pulling from the right repository.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ apt-cache policy docker-engine\r\ndocker-engine:\r\n  Installed: (none)\r\n  Candidate: 1.12.1-0~trusty\r\n  Version table:\r\n     1.12.1-0~trusty 0\r\n        500 https:\/\/apt.dockerproject.org\/repo\/ ubuntu-trusty\/main amd64 Packages\r\n     1.12.0-0~trusty 0\r\n        500 https:\/\/apt.dockerproject.org\/repo\/ ubuntu-trusty\/main amd64 Packages\r\n     ...<\/pre>\n<p>CONT&#8230;.<\/li>\n<li><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>For linux, download from http:\/\/docs.docker.com\/engine\/installation\/linux\/. For Ubuntu, read and follow the step here. Check the kernel machine. The kernel should be newer than 3.1. Also docker requires 64-bit Ubuntu. teddy@teddy-K43SJ:~$ uname -r 4.4.0-38-generic My kernel version is 4.4.0-38 (PASS) Update APT source Update system sudo apt-get update Update package information, ensure that APT works with &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/09\/26\/docker-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Docker Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-714","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=714"}],"version-history":[{"count":5,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/714\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/714\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}