파일구조
./docker_ubuntu/Dockerfile
./docker_ubuntu/docker-compose.yml
./docker_ubuntu/Dockerfile
FROM ubuntu:18.04
WORKDIR /
RUN apt update -y
RUN apt install vim -y
RUN apt install net-tools -y
RUN apt install iputils-ping -y
RUN apt update -y
ENV TZ=Asia/Seoul
RUN apt-get install -y tzdata
./docker_ubuntu/docker-compose.yml
version: '3'
services:
ubuntu:
hostname: ubuntu
container_name: ubuntu
build:
context: .
dockerfile: ./ubuntu/Dockerfile
volumes:
- ./ubuntu:/ubuntu
stdin_open: true
tty: true
'Operating System > Docker' 카테고리의 다른 글
[docker] 도커로 미니오 컨테이너 만들기 (docker-compose, minio) (0) | 2021.10.05 |
---|---|
[docker] 도커 볼륨 명령어로 전체 삭제하기 (docker, volume, prune) (0) | 2021.10.05 |
[docker] docker compose로 알파인리눅스 컨테이너 만들기 (docker-compose alpine) (0) | 2021.09.20 |
[docker] docker compose로 nginx 컨테이너 만들기 (docker-compose nginx) (0) | 2021.09.20 |
[Docker] docker compose로 elk stack 컨테이너 만들기 (Docker-compose elasticsearch logstash kibana) (0) | 2021.09.20 |