299 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 300 systemctl docker status 301 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 302 sudo yum makecache fast 303 sudo yum -y install docker-ce 304 sudo systemctl start docker 305 docker run hello-world 306 systemctl docker status 307 systemctl status docker 308 docker ps 309 docker ps -a 315 docker exec -it 5621af6c35d7 /bin/bash 316 docker images 317 docker search tomcat 318 docker pull tomcat 319 docker images|grep tomcat 320 docker ps 321 docker start 78b258e36eed 322 docker run -i -t tomcat /bin/bash 328 netstat -ltnp 337 docker run --name tomcat -p 8080:8080 -v $PWD/test:/usr/local/tomcat/webapps/test -d tomcat 338 netstat -ltnp 339 docker ps 340 docker stop tomcat 341 docker ps 342 docker exec -it tomcat /bin/bash 346 docker rm -f 1c68e45e22eb 347 docker ps -a 348 docker start 7fab2a8ffe84 349 docker ps 350 docker exec -it 7fab2a8ffe84 /bin/bash 363 docker start tomcat 364 docker ps 365 docker exec -it tomcat /bin/bash 405 docker stop 7fab2a8ffe84