I am learning docker, just getting my feet wet... I begin begging your pardon since I will probably using terminology badly :-(
I have successfully built my first container and run it locally.
The container image is a node.js
+ express
web app.
Locally I run my image this way:
docker run -p 80:3000 myname/myimage
If I point my browser to the local server IP
http://192.168.1.123:80/
I access my app in all of its glory.
Then, I push it to docker hub with this command:
docker push myname/myimage
So far so good. The question is: am I supposed to be able to run my app from docker cloud, already, or should I push it to AWS, for example?
答案 0 :(得分:2)
By executing docker push myname/myimage
you only sent your image to docker-hub.
This image can then be run to create a container; but as is, it is not running.
You effectively will have to run it on any machine or service in order to access your app.
concerning the terminology: