Advertisement
M2F0

Docker Installation on Debian Jesie

Dec 3rd, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. ###############
  2. #Tuto for the community by M2F0
  3. #
  4. #M2F0 03/12/2015
  5. ###############
  6. ############ Docker Preparation
  7. 0. Zero step, ;-), let's install 'apt-transport-https', 'cause by default apt doesn't know how to work with https connections types. To install simple type: 'apt-get install apt-transport-https -y'.
  8. 1.Now we need to open the /etc/apt/sources.list.d/docker.list file to make some changes. If the file doesn't exists, pls create it.
  9. 2. So, include this line: "deb https://apt.dockerproject.org/repo debian-jessie main" in the file. THis line will make the docker repository appoint to the correct location of the docker files.
  10. 3.To install docker on Debian Jessie is add the docker repository, so we need to add the line above:
  11. apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  12. 4. Let's update the apt cache with the apt-get update -y.
  13. 5. Let's check if the docker repositoy is ready. To do that simple type the line: apt-cache policy docker-engine
  14. This line will ask to the apt-cache about the docker-engine policys.
  15. ########### Docker Installation
  16. 1. In Debian, docker is call docker engine, so let's install docker:
  17. apt-get install docker-engine
  18. ########### Docker Start
  19. 1. Once open a time, just for fun! Docker is installed. So let's start docker:
  20. service docker start
  21. and now let's start our first docker containner:
  22. docker run hello-world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement