Docker - Containerizing an App
Containerizing an App: CODE - DOCKERFILE - BUILD -IMAGE To get our code into Container we need something called Dockerfile Dockerfile - List of instructions on how to build an image with an app inside. The above Dockerfile contains 4 layers and some metadata Now build an image docker image build -t apiembark . Now run a container from that image docker container run -d --name test_app -p 8080:8080 apiembark Code ->Dockerfile -> Docker Image Build Build Context - Location of our code (My Dockerfile is located in the build context) But when you type docker image build whatever is in there is get sent to the daemon and processes part of the build. Now for us, the client and daemon are on the same host but it is totally possible to have clients talking to remote Daemons over the network In that case , our build context can absolutely be a remote gihub rep...