티스토리 뷰

IT

Install docker on Ubuntu 16.04

래빗조아 2020. 2. 22. 10:45
  • Set up the Repository

    $ sudo apt-get update

      

    $ sudo apt-get install \

        apt-transport-https \

        ca-certificates \

        curl \

        software-properties-common

      

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

      

    $ sudo apt-key fingerprint 0EBFCD88

     

    pub   4096R/0EBFCD88 2017-02-22

          Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88

    uid                  Docker Release (CE deb) <docker@docker.com>

    sub   4096R/F273FCD8 2017-02-22

      

    $ sudo add-apt-repository \

       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \

       $(lsb_release -cs) \

       stable"

  • Install Docker CE

    $ sudo apt-get update

    $ sudo apt-get install docker-ce

    $ sudo docker run hello-world

    Unable to find image 'hello-world:latest' locally

    latest: Pulling from library/hello-world

    1b930d010525: Pull complete

    Digest: sha256:fc6a51919cfeb2e6763f62b6d9e8815acbf7cd2e476ea353743570610737b752

    Status: Downloaded newer image for hello-world:latest

     

    Hello from Docker!

    This message shows that your installation appears to be working correctly.

     

    To generate this message, Docker took the following steps:

     1. The Docker client contacted the Docker daemon.

     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

        (amd64)

     3. The Docker daemon created a new container from that image which runs the

        executable that produces the output you are currently reading.

     4. The Docker daemon streamed that output to the Docker client, which sent it

        to your terminal.

     

    To try something more ambitious, you can run an Ubuntu container with:

     $ docker run -it ubuntu bash

     

    Share images, automate workflows, and more with a free Docker ID:

     https://hub.docker.com/

     

    For more examples and ideas, visit:

     https://docs.docker.com/get-started/

'IT' 카테고리의 다른 글

캘린더 표준으로 알아보는 일정관리 S/W의 구현방법  (0) 2008.08.06
일정관리 S/W - 캘린더 표준  (1) 2008.06.19
스티브 잡스의 프리젠테이션 비결  (0) 2008.06.17
업무프로세스  (0) 2008.04.06
Big Screen  (0) 2008.02.28
댓글