From Fedora Project Wiki

No edit summary
No edit summary
 
Line 3: Line 3:
Download and run a Docker image with Cockpit
Download and run a Docker image with Cockpit
|setup=
|setup=
Open Cockpit in your browser as described [[Test_Day:2014-09-16_Cockpit#How_to_test.3F|here]].
Log into Cockpit.


Make sure that Docker is active by following these steps inside Cockpit:
Make sure that Docker is active by following these steps inside Cockpit:

Latest revision as of 09:56, 23 March 2015

Description

Download and run a Docker image with Cockpit

Setup

Log into Cockpit.

Make sure that Docker is active by following these steps inside Cockpit:

  1. Navigate to "Services" page.
  2. Switch to the "Sockets" tab.
  3. Find the "docker.socket" unit and start it if neccessary.
  4. Optionally, you can also "enable" the unit so that it starts after every boot.

Alternatively, you can run these commands in a shell:

# systemctl start docker.socket
# systemctl enable docker.socket

How to test

  1. Navigate to the "Containers" page.
  2. Download the "fedora" image.
  3. Create a new container by running the image. Use /bin/bash as the command and make sure it has a terminal.
  4. Type some commands into the container terminal. Maybe yum update.
  5. Monitor the memory and CPU usage of the container.

Expected Results

No errors should occur.