Skip to Content
Migrating Applications to the Cloud with Azure
book

Migrating Applications to the Cloud with Azure

by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
December 2019
Intermediate to advanced content levelIntermediate to advanced
494 pages
11h 41m
English
Packt Publishing
Content preview from Migrating Applications to the Cloud with Azure

Running the application with containers

Now that our application is containerized and the Docker image is stored in an accessible registry, we can go ahead and run the application. 

Take a look at the following command, which we will use to launch our application:

docker run -p 80:3000 amitmalik/nodejsexpresssample

Let's take a look at each item in the command:

  • docker: Initiates the Docker client daemon.
  • run: Keyword for starting the containers.
  • -p 80:3000: Does the mapping of host port 80 to port 3000 inside the Docker container. This will redirect all the requests coming from host port 80 to port 3000 inside the container.
  • amitmalik/nodejsexpresssample: Specifies the Docker image to be used. In this example, we're using Docker Hub to download ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Migrating Applications to the Cloud

Migrating Applications to the Cloud

Steve Swoyer
Microsoft Azure: Planning, Deploying, and Managing the Cloud

Microsoft Azure: Planning, Deploying, and Managing the Cloud

Julian Soh, Marshall Copeland, Anthony Puca, Micheleen Harris

Publisher Resources

ISBN: 9781839217470Supplemental Content