tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Container Management > Docker > How to start Docker Container in Detached/Background mode

How to start Docker Container in Detached/Background mode

Author: Venkata Sudhakar

Docker is an open platform to develop, ship, and run containerized applications. It separates infra from application to ease application development and support anywhere development strategy. The below example shows how to start Docker Container in Detached/Background mode using -d flag.

1C:\>docker run -d -p 8080:8080 -p 50000:50000 jenkins/jenkins
2ea3ee8f5f0333aedeae9e4bcc7b885055b99740fea34e977a971603bdc8658a7
3 
4C:\>docker container ls
5CONTAINER ID   IMAGE             COMMAND                  CREATED         STATUS         PORTS                                              NAMES
6ea3ee8f5f033   jenkins/jenkins   "/sbin/tini -- /usr/..."   7 seconds ago   Up 6 seconds   0.0.0.0:8080->8080/tcp, 0.0.0.0:50000->50000/tcp   nifty_jones
7 
8C:\>

After this step we can access Jenkins server on http://localhost:8080/


 
  


  
bl  br