[root@dyw219 bin]# docker version Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d OS/Arch (server): linux/amd64
[root@dyw219 newimg]# docker run -dit --name myweb -p 8080:80 centos/httpd:index 6f9d0405f15bb13e7723b637e90eb18a7a7306289ce659ec8f88f7fcd6cd5b78
[root@dyw219 newimg]# curl http://127.0.0.1:8080 myweb test
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6f9d0405f15b centos/httpd:index "/run-httpd.sh" 10 hours ago Up 10 hours 0.0.0.0:8080->80/tcp myweb
[root@dyw219 newimg]# docker cp index.html 6f9d0405f15b:/var/www/html/ Error: Path not specified