yanglinux / study_memo

0 stars 0 forks source link

2017/4/4 docker #11

Open yanglinux opened 7 years ago

yanglinux commented 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