docker 로 ubuntu를 내려받아 apt-get으로 이것저것 설치 해보려는데 너무 느려서 뭘 할수가 없을 지경에 이르렀다.
docker pull ubuntu 로 받아온 ubuntu는 apt-get에서 다운로드할때 기본적으로 미국서버를 사용하기 때문인데,
/etc/apt/sources.list
의 서버 목록을 한국 미러서버로 모두 바꿔주면 굉장히 빠르게 apt-get이 실행이 된다!
sed -i 's@archive.ubuntu.com@kr.archive.ubuntu.com@g' /etc/apt/sources.list
Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN sed -i 's@archive.ubuntu.com@kr.archive.ubuntu.com@g' /etc/apt/sources.list |
미러서버의 목록은 아래 사이트에서 확인할수 있다.
'개발 > docker' 카테고리의 다른 글
RabbitMQ on Docker (0) | 2023.06.05 |
---|---|
MySQL 8 on docker (1) | 2018.11.04 |
Redis on docker (0) | 2018.08.13 |
Running RabbitMQ on docker (0) | 2017.12.19 |