Docker – Run First Docker Image and Check in Browser

1. SSH to Virtual Machine.

Open gitBash, and type:

$ docker-machine ssh

 

2. Run nginx image on Docker Hub

$ docker run –rm -i -t -p 80:80 nginx

1

 

3.Get Virtual Machine IP

Open another gitBash, and type:

$ docker-machine ip

1

 

4. Check in browser:

1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s