649 mkdir /DockerFileDemo
650 cd /DockerFileDemo/
651 vi Dockerfile
652 docker images
653 docker ps
654 docker stop 430c24476b5a 3dec2971eb8c d1f5432037e7
655 docker ps
656 docker ps -a
657 docker system prune
658 docker ps -a
659 docker images
660 docker images prune
661 docker images prune --force
662 docker system prune
663 docker images
664 docker system prune
665 docker image prune
666 docker image prune -a
667 docker images
668 docker ps
669 vi Dockerfile
670 docker build -t image1 .
671 docker images
672 docker run -it image1
673 docker ps
674 vi Dockerfile
675 docker build -t image2 .
676 echo "this file copied using copy instruction"> index.html
677 docker build -t image2 .
678 docker run -it image2
679 vi Dockerfile
680 docker build -t image3 .
681 vi Dockerfile
682 docker build -t image4 .
683 docker images
684 docker run -it image4
685 docker ps
686 docker inspect e6150af8d7b9
687 curl http://172.17.0.4:80
688 curl http://172.17.0.4:80/index.html
689 curl 172.17.0.4
690 docker images
691 vi Dockerfile
692 cd ../DockerDemo/
693 ls p-l
694 ls -l
695 cat Dockerfile
696 cd ../DockerFileDemo/
697 vi Dockerfile
698 docker build -t image5 .
699 docker run -d -n nginx_web image5
700 docker run -d --n nginx_web image5
701 docker run -d --name nginx_web image5
702 docker ps
703 dokcer attach f973ec8bf955
704 dokcer exec -it f973ec8bf955
705 docker attach f973ec8bf955
706 docker ps
707 docker run -d --name nginx_web1 image5
708 docker ps
709 docker inspect 8d454e0b04e0
710 curl 8d454e0b04e0
711 curl 172.17.0.5
712 docker ps
713 docker run -d --name nginx_web1 -p 81:80 image5
714 docker run -d --name nginx_web3 -p 81:80 image5
715 docker ps
716 cat Dockerfile
717 docker ps
718 docker logs 13.233.38.60
719 docker logs 0face617feb1
720 docker attach 0face617feb1 /bin/bash
721 docker attach 0face617feb1
722 docker ps
723 vi Dockerfile
724 docker build -t image6 .
725 docker run -it image6
726 vi Dockerfile
727 docker build -t image7 .
728 docker run -it -p 82:80 image7
729 docker ps
730 vi Dockerfile
731 history
No comments:
Post a Comment