Docker部署nginx
[root@iZuf616vx1rni5mn9jvi9oZ ~]
[root@iZuf616vx1rni5mn9jvi9oZ ~]
[root@iZuf616vx1rni5mn9jvi9oZ ~]
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 08b152afcfae 29 hours ago 133MB
centos latest 300e315adb2f 7 months ago 209MB
[root@iZuf616vx1rni5mn9jvi9oZ ~]
77d296e05ad8ead7395d747592bbe05fafa3cb91a947875b2a4ad8165c6cfa7d
[root@iZuf616vx1rni5mn9jvi9oZ ~]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
77d296e05ad8 nginx "/docker-entrypoint.…" 4 seconds ago Up 4 seconds 0.0.0.0:3344->80/tcp, :::3344->80/tcp nginx01
[root@iZuf616vx1rni5mn9jvi9oZ ~]
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
......
[root@iZuf616vx1rni5mn9jvi9oZ ~]
root@77d296e05ad8:/
nginx: /usr/sbin/nginx /usr/lib/nginx /etc/nginx /usr/share/nginx
root@77d296e05ad8:/
root@77d296e05ad8:/etc/nginx
conf.d fastcgi_params mime.types modules nginx.conf scgi_params uwsgi_params
root@77d296e05ad8:/etc/nginx
[root@iZuf616vx1rni5mn9jvi9oZ ~]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
77d296e05ad8 nginx "/docker-entrypoint.…" 46 minutes ago Up 46 minutes 0.0.0.0:3344->80/tcp, :::3344->80/tcp nginx01
[root@iZuf616vx1rni5mn9jvi9oZ ~]
77d296e05ad8
|