docker practice
1.0.0
Gambar Docker dengan Python 2.7.13 + Python 3.6.0 + MongoDB 3.2. Ini didasarkan pada Alpine Linux 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 dari Alpine Linux(tertawa)
Docker-Practice terutama didistribusikan berdasarkan ketentuan lisensi MIT dan lisensi Apache (versi 2.0). Lihat Hak Cipta untuk detailnya.