Browse code

Update nodejs_web_app.md

Updated to documentation to use the centos6 image instead of the unofficial tutum image of centos6.4

Jan Toebes authored on 2014/07/31 15:54:22
Showing 1 changed files
... ...
@@ -66,10 +66,10 @@ requires to build (this example uses Docker 0.3.4):
66 66
 
67 67
 Next, define the parent image you want to use to build your own image on
68 68
 top of. Here, we'll use
69
-[CentOS](https://registry.hub.docker.com/_/centos/) (tag: `6.4`)
69
+[CentOS](https://registry.hub.docker.com/_/centos/) (tag: `centos6`)
70 70
 available on the [Docker Hub](https://hub.docker.com/):
71 71
 
72
-    FROM    tutum/centos-6.4
72
+    FROM    centos:centos6
73 73
 
74 74
 Since we're building a Node.js app, you'll have to install Node.js as
75 75
 well as npm on your CentOS image. Node.js is required to run your app
... ...
@@ -109,7 +109,7 @@ defines your runtime, i.e. `node`, and the path to our app, i.e. `src/index.js`
109 109
 Your `Dockerfile` should now look like this:
110 110
 
111 111
     # DOCKER-VERSION 0.3.4
112
-    FROM    tutum/centos-6.4
112
+    FROM    centos:centos6
113 113
 
114 114
     # Enable EPEL for Node.js
115 115
     RUN     rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
... ...
@@ -137,9 +137,9 @@ Your image will now be listed by Docker:
137 137
     $ sudo docker images
138 138
 
139 139
     # Example
140
-    REPOSITORY                            TAG        ID              CREATED
141
-    tutum                                 centos-6.4 539c0211cd76    8 weeks ago
142
-    <your username>/centos-node-hello     latest     d64d3505b0d2    2 hours ago
140
+    REPOSITORY                          TAG        ID              CREATED
141
+    centos                              centos6    539c0211cd76    8 weeks ago
142
+    <your username>/centos-node-hello   latest     d64d3505b0d2    2 hours ago
143 143
 
144 144
 ## Run the image
145 145