Open yanglinux opened 7 years ago
docker run -i -d -p 8090:80 xxxxxxxx
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7e2159d91ff7 xxxxxxxx "/bin/bash" 2 seconds ago Up 1 second 0.0.0.0:8090->80/tcp hungry_almeida
docker exec -ti hungry_almeida /sbin/service httpd start
docker run -i -d -p 8090:80 xxxxxxxx
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7e2159d91ff7 xxxxxxxx "/bin/bash" 2 seconds ago Up 1 second 0.0.0.0:8090->80/tcp hungry_almeida
docker exec -ti hungry_almeida /sbin/service httpd start