I thought it would be nice to keep it compact. You may study in other books and then read in retrospect.
docker pull [Image name] #Get an image
docker run -d -p [Host side port]:[Container side port][Tag name]
docker ps -a #View the status of the container
docker stop [Container ID]
--Persistent data
docker run -d -has -p 8081:80 -v $(PWD)/htdocs:/usr/local/apache2/htdocs/httpd
--Log in to the container
docker exec -it container ID/bin/bash
--docker-compose container startup
docker-compose up -d
docker-compose ps -a
Recommended Posts