docker practice
1.0.0
Python 2.7.13 + Python 3.6.0 + mongodb 3.2를 가진 도커 이미지. 알파인 리눅스 3.5를 기반으로합니다.
# Build image
sudo docker build -t docker-practice .
# Run image with psuedo-tty being attached to the screen
sudo docker run
--interactive --tty
--publish 12345:27017
--volume /srv/docker-practice/db:/data/db
--rm --name docker-practice docker-practice
# Run image as a daemon
sudo docker run
--detach
--publish 12345:27017
--volume /srv/docker-practice/db:/data/db
--rm --name docker-practice docker-practice
# Attach to the running docker image
sudo docker exec -it docker-practice /bin/sh
# Stop running docker container
sudo docker stop docker-practicemongodb 패키지(웃음)
Docker-Practice는 주로 MIT 라이센스와 Apache 라이센스 (버전 2.0)의 조건에 따라 배포됩니다. 자세한 내용은 저작권을 참조하십시오.