docker version
docker info
docker command --- In 2017 Introduced "management commands" and "subcommands"
docker image --help
docker container --help
docker container run --publish 80:80 nginx
docker container ls //Only shows running containers
docker container ls -a //All containers including stopped ones
docker container run --publish 80:80 --name webhost --detach nginx //Container name has to be unique as well
//cannot conflict with stopped container name as well
docker container stop fb7 webhost2 //I mixed containerId and containerName, Can't stop running container as well
docker container logs --follow containerID //Tailing Logs
No comments:
Post a Comment