In this workshop, you will learn to navigate Cockpit and examine its features and capabilities.
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 makes it easy to monitor and administer Docker containers running on Cockpit-managed servers such as Project Atomic hosts. Some of the capabilities include:
Monitoring resources consumed by containers
Adjusting resources available to containers (Resource limits are enforced by the CGroup subsystem in the Linux kernel.)
Adjusting CPU shares
Assigning memory limits
More CGroup policy controls to come
Stopping, Starting, Deleting and Committing container instances
Running and Deleting container images
Password: <to be provided>
After logging in, you should see the Cockpit web UI.
System: Shows information about the system that Cockpit is running on. This includes CPU usage, memory usage, disk I/O, and network traffic, as well as hardware and operating system details.
Click: Show Fingerprints | System Time | Power Options | Performance Profile
System Services: Shows the systemd services running on the Cockpit server. You can see which are active/enabled or inactive. You can also see other systemd features: Targets, sockets, timers, and paths.
Click: Targets | System Services | Sockets | Timers | Paths
Containers: Lists all images available on the system, all running and non-running containers, combined CPU & memory usage graphs, and a storage usage bar.
Click: Get new image
Use the following commandline to search for and download Fedora. Type in "docker.io/fedora" in order to search the online Docker registry.
Search: fedora -> download
Then, add a command to run the image. ("Sleep" is a generic enough command.)
Command: sleep 999
Click on the newly created container to view all of the metadata about the container. Shows the state, the command executed, the container and image IDs, a timestamp, as well as the container’s own terminal.
Click on the newly created container [>]
Expand the view and see all of the metadata about the container. Shows the state, the command executed, the container’s and image’s IDs, a timestamp, as well as the container’s own terminal:
Subscriptions: Displays what Red Hat products are installed and subscribed.
Accounts: Shows which administrative (root) and other users have accounts on the system.
Diagnostic report: Collects system configuration and diagnostics information and prepares a report, in an XZ format.
Terminal: Opens a Terminal (command line) session to the Cockpit system. From there, you can run any commands available to the user you are logged in as.
Command: sudo ps -a
When you’ve completed examining Cockpit, stop and delete the container using the following command.
Drop Down: Select Everything to Refresh the page and display the exited container image
Select the [Trash] icon to remove the image
Confirm the delete