반응형
0. Docker Login
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (jmnote): sjh
Password: ****
Login Succeeded
docker info | grep Username
Username: sjh
1. Docker Image Build
1.1. Dockerfile 작성
FROM tensorflow/tensorflow:2.5.1-gpu
RUN pip install --upgrade pip \
matplotlib \
pandas \
numpy \
pymysql \
jupyter \
&& apt-get -y install tmux
1.2. Docker Image Build
$ docker build -t [DockerHub ID]/[ImageName]:[Tag] [도커파일위치]
# docker build -t sjh/tensorflow:v1.1 .
2. Docker Image Push
$ docker push [DockerHub ID]/[ImageName]:[Tag]
# docker push sjh/tensorflow:v1.1
3. Docker Image Pull
$ docker pull [DockerHub ID]/[ImageName]:[Tag]
# docker pull sjh/tensorflow:v1.1
반응형
'Development > Docker' 카테고리의 다른 글
[Docker] Build 후 레포지토리:태그 가 none 인경우(Dangling Images) (0) | 2021.12.16 |
---|---|
[Docker] Tensorflow GPU Container 띄우기 (7) | 2021.11.15 |
[Docker] nvidia-docker2 설치하기 (Ubuntu 20.04) (2) | 2021.09.30 |
[Docker] Ubuntu 20.04 도커 설치(Docker Install) (0) | 2021.09.30 |
[Docker] 실행중인 Container 에 진입하는 법 (0) | 2021.09.17 |
댓글