Deploy and Manage Your Docker Containers with Cockpit


Project Atomic integrates the tools and patterns of container-based application and service deployment with trusted operating system platforms to deliver an end-to-end hosting architecture that’s modern, reliable, and secure.

Cockpit

A remote manager for GNU/Linux servers

  • Cockpit is a server manager that makes it easy to administer your GNU/Linux servers via a web browser.
  • Cockpit makes it easy for any sysadmin to perform simple tasks, such as administering storage, inspecting journals and starting and stopping services.
  • Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.
  • You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.

Cockpit and Docker

Cockpit also makes it easy to monitor and administer Docker containers running on Cockpit-managed servers such as Project Atomic hosts.

  • Monitor resources consumed by containers
  • Adjust resources available to containers
    • Resource limits enforced by the CGroup subsystem in the Linux kernel
    • Adjust CPU shares
    • Assign memory limits
    • More CGroup policy controls to come
  • Stop, Start, Delete and Commit container instances
  • Run and Delete container images

Starting and Using Cockpit

Cockpit is in beta/preview at this time, but you can still try it out and help test! A preview is included with the image. For more information, see the Cockpit project page.

  1. After starting your atomic host, you need to enable the cockpit service and socket:
    [root@fedora21 ~]# systemctl enable cockpit.socket
    [root@fedora21 ~]# systemctl start cockpit.socket
  2. You can now use the cockpit management interface at http://yourhost:9090

Contain copied from Project Atomic website: http://www.projectatomic.io/docs/cockpit/

Step1 : Login to web GUI  with regular root username & password. 

Screen Shot 2015-02-16 at 6.57.35 am

Step2 : Hosts Details / Status, we can add multiple hosts. 

Screen Shot 2015-02-16 at 6.58.04 am

Step3 : Hosts Machine Resource Status report. 

Screen Shot 2015-02-16 at 6.58.53 am

Step4 : System Services Status

Screen Shot 2015-02-16 at 7.00.10 am

Step5 : System Networking Status

Screen Shot 2015-02-16 at 7.01.18 am

Step6 : Managing Resource by setting up resource limit for a container 

Screen Shot 2015-02-16 at 7.03.03 am

Step7 : Running a container with /bin/bash shell.  

Screen Shot 2015-02-16 at 7.05.24 am

Step8 : Stating a New Container with  Set of command  & cpu / memory limit. 

Screen Shot 2015-02-16 at 7.07.14 am

Step9 : Monitoring the container standard out on /bin/bash prompt via GUI

Screen Shot 2015-02-16 at 7.09.37 am Step10 : Removing a container from Host. 

Screen Shot 2015-02-16 at 7.09.49 amHappy Learning 🙂 🙂

Cheers!!!

Advertisements

About Amit Vashist

Amit Vashist is someone who brings with him a treasure full of experience of over 8 years in open source technologies. When it comes to virtualization he has single handedly managed end-to-end migration projects in KVM and Xen that involved right from sizing the systems to P2V of existing physical servers. He understands what can go wrong in virtualized world and how to take care of it. He also has root level knowledge on Red Hat platforms and has commissioned & Lamp; Provides Corporate Training over Red Hat HA clusters. Now days Supporting Telecom Giant Billing & Support system, gaining experience on JBoss, Splunk, SQL, Nagios, Apache & Fuse ..etc.
This entry was posted in Cloud, Linux, Uncategorized, Virtualization and tagged , , , , , , , , , , , , . Bookmark the permalink.

Please share your valuable suggestions/comments..!!!

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