Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight )) |
|||
5번째 줄: | 5번째 줄: | ||
==우분투 버전 확인== | ==우분투 버전 확인== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# cat /etc/issue | root@zetawiki:~# cat /etc/issue | ||
Ubuntu 14.04.4 LTS \n \l | Ubuntu 14.04.4 LTS \n \l | ||
</ | </syntaxhighlight> | ||
:→ 14.04 (LTS), 16.04 (LTS), 16.10 중 하나이면 OK | :→ 14.04 (LTS), 16.04 (LTS), 16.10 중 하나이면 OK | ||
14번째 줄: | 14번째 줄: | ||
{{참고|apt-get update}} | {{참고|apt-get update}} | ||
* 14.04라면 추가패키지 설치가 권장됨 | * 14.04라면 추가패키지 설치가 권장됨 | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get update | root@zetawiki:~# apt-get update | ||
... (생략) | ... (생략) | ||
21번째 줄: | 21번째 줄: | ||
Fetched 5,103 kB in 19s (260 kB/s) | Fetched 5,103 kB in 19s (260 kB/s) | ||
Reading package lists... Done | Reading package lists... Done | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get install -y --no-install-recommends linux-image-extra-$(uname -r) linux-image-extra-virtual | root@zetawiki:~# apt-get install -y --no-install-recommends linux-image-extra-$(uname -r) linux-image-extra-virtual | ||
Reading package lists... Done | Reading package lists... Done | ||
34번째 줄: | 34번째 줄: | ||
Setting up linux-image-generic (3.13.0.110.118) ... | Setting up linux-image-generic (3.13.0.110.118) ... | ||
Setting up linux-image-extra-virtual (3.13.0.110.118) ... | Setting up linux-image-extra-virtual (3.13.0.110.118) ... | ||
</ | </syntaxhighlight> | ||
==저장소 설정== | ==저장소 설정== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common | root@zetawiki:~# apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common | ||
Reading package lists... Done | Reading package lists... Done | ||
45번째 줄: | 45번째 줄: | ||
Setting up apt-transport-https (1.0.1ubuntu2.17) ... | Setting up apt-transport-https (1.0.1ubuntu2.17) ... | ||
Processing triggers for libc-bin (2.19-0ubuntu6.7) ... | Processing triggers for libc-bin (2.19-0ubuntu6.7) ... | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# curl -fsSL https://apt.dockerproject.org/gpg | apt-key add - | root@zetawiki:~# curl -fsSL https://apt.dockerproject.org/gpg | apt-key add - | ||
OK | OK | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D | root@zetawiki:~# apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D | ||
/etc/apt/trusted.gpg | /etc/apt/trusted.gpg | ||
59번째 줄: | 59번째 줄: | ||
Key fingerprint = 7B2C 3B08 89BF 5709 A105 D03A C251 8248 EEA1 4886 | Key fingerprint = 7B2C 3B08 89BF 5709 A105 D03A C251 8248 EEA1 4886 | ||
uid Launchpad VLC | uid Launchpad VLC | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main" | root@zetawiki:~# add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main" | ||
root@zetawiki:~# grep ^'deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep docker | root@zetawiki:~# grep ^'deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep docker | ||
/etc/apt/sources.list:deb https://apt.dockerproject.org/repo/ ubuntu-trusty main | /etc/apt/sources.list:deb https://apt.dockerproject.org/repo/ ubuntu-trusty main | ||
</ | </syntaxhighlight> | ||
==도커 설치== | ==도커 설치== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get update | root@zetawiki:~# apt-get update | ||
Hit http://dl.yarnpkg.com stable InRelease | Hit http://dl.yarnpkg.com stable InRelease | ||
76번째 줄: | 76번째 줄: | ||
Fetched 5,140 kB in 18s (277 kB/s) | Fetched 5,140 kB in 18s (277 kB/s) | ||
Reading package lists... Done | Reading package lists... Done | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get -y install docker-engine | root@zetawiki:~# apt-get -y install docker-engine | ||
Reading package lists... Done | Reading package lists... Done | ||
89번째 줄: | 89번째 줄: | ||
Processing triggers for libc-bin (2.19-0ubuntu6.7) ... | Processing triggers for libc-bin (2.19-0ubuntu6.7) ... | ||
Processing triggers for ureadahead (0.100.0-16) ... | Processing triggers for ureadahead (0.100.0-16) ... | ||
</ | </syntaxhighlight> | ||
==테스트== | ==테스트== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# docker run hello-world | root@zetawiki:~# docker run hello-world | ||
Unable to find image 'hello-world:latest' locally | Unable to find image 'hello-world:latest' locally | ||
119번째 줄: | 119번째 줄: | ||
For more examples and ideas, visit: | For more examples and ideas, visit: | ||
https://docs.docker.com/engine/userguide/ | https://docs.docker.com/engine/userguide/ | ||
</ | </syntaxhighlight> | ||
==같이 보기== | ==같이 보기== |
2021년 9월 24일 (금) 23:31 기준 최신판
- 다른 뜻에 대해서는 우분투16 docker 설치 문서를 참조하십시오.
- 다른 뜻에 대해서는 리눅스 docker 자동설치 문서를 참조하십시오.
- Get Docker for Ubuntu
- 우분투 docker 설치
1 우분투 버전 확인[ | ]
Console
Copy
root@zetawiki:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l
- → 14.04 (LTS), 16.04 (LTS), 16.10 중 하나이면 OK
2 추가패키지 설치[ | ]
apt-get update 문서를 참고하십시오.
- 14.04라면 추가패키지 설치가 권장됨
Console
Copy
root@zetawiki:~# apt-get update
... (생략)
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 5,103 kB in 19s (260 kB/s)
Reading package lists... Done
Console
Copy
root@zetawiki:~# apt-get install -y --no-install-recommends linux-image-extra-$(uname -r) linux-image-extra-virtual
Reading package lists... Done
Building dependency tree
... (생략)
Found linux image: /boot/vmlinuz-3.13.0-110-generic
Found initrd image: /boot/initrd.img-3.13.0-110-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Setting up linux-image-generic (3.13.0.110.118) ...
Setting up linux-image-extra-virtual (3.13.0.110.118) ...
3 저장소 설정[ | ]
Console
Copy
root@zetawiki:~# apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common
Reading package lists... Done
Building dependency tree
... (생략)
Setting up curl (7.35.0-1ubuntu2.10) ...
Setting up apt-transport-https (1.0.1ubuntu2.17) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Console
Copy
root@zetawiki:~# curl -fsSL https://apt.dockerproject.org/gpg | apt-key add -
OK
Console
Copy
root@zetawiki:~# apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
... (생략)
pub 1024R/EEA14886 2010-05-04
Key fingerprint = 7B2C 3B08 89BF 5709 A105 D03A C251 8248 EEA1 4886
uid Launchpad VLC
Console
Copy
root@zetawiki:~# add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
root@zetawiki:~# grep ^'deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep docker
/etc/apt/sources.list:deb https://apt.dockerproject.org/repo/ ubuntu-trusty main
4 도커 설치[ | ]
Console
Copy
root@zetawiki:~# apt-get update
Hit http://dl.yarnpkg.com stable InRelease
Get:1 https://apt.dockerproject.org ubuntu-trusty/main amd64 Packages
Ign http://us.archive.ubuntu.com trusty InRelease
... (생략)
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 5,140 kB in 18s (277 kB/s)
Reading package lists... Done
Console
Copy
root@zetawiki:~# apt-get -y install docker-engine
Reading package lists... Done
Building dependency tree
... (생략)
Setting up aufs-tools (1:3.2+20130722-1.1) ...
Setting up docker-engine (1.13.1-0~ubuntu-trusty) ...
docker start/running, process 31023
Setting up cgroup-lite (1.9) ...
cgroup-lite start/running
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
5 테스트[ | ]
Console
Copy
root@zetawiki:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
78445dd45222: Pull complete
Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
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.
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://cloud.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
6 같이 보기[ | ]
7 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- Apt-get (2)
- Docker (1)
우분투 MySQL 설치 ― Qweqwe750우분투 MySQL 설치 ― Jmnote