Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
/ sc-docker Public archive

This a plugin for the sc script. It provides the functionality to pull and run sc compatible dockers, in a simplified and secure manner

License

Notifications You must be signed in to change notification settings

rdkcmf/sc-docker

Repository files navigation

sc-docker

Software Control (sc) Docker Plugin

language OS

The sc docker module allows users to run docker containers in a standardised manner, using known docker registries.

Table of Contents

Requirements

  • Install Python 3.10+
  • The docker engine must be installed.
    • Installation instructions can be found here
  • Access to the docker engine
    • Access to the docker engine, could require privileged permissions, on linux it requires the user to be part of the docker group. See installation instructions above for more about this.

Installation

pip install git+https://github.com/rdkcentral/sc-docker.git@main

Quick Start

To work with private Docker registries, such as those used within our projects, you need to securely log in and store your credentials. Here's how:

  • sc docker login
    • VIEW THE LOGIN GUIDE!
    • Enter your registry e.g. ghcr.io/comcast-sky
    • Enter your registry type e.g. github
    • Are your credentials in your netrc? e.g n
    • Enter username
    • Enter API key
  • Use sc docker list to find available dockers
  • sc docker run docker_name command

Usage

The usage document provides examples demonstrating the functionality of the module, which you can reference here: Usage Manual

Admin Tools

  • To whitelist registries write them in the directory /etc/sc/docker_registry_whitelist seperated by newlines.
  • To set server-wide registry logins add them to /etc/sc/.config.yaml in the following format:
docker:
  ghcr.io/your-org:
    reg_type: github
    credential_store: config
    username: your_username
    api_key: your_api_key

About

This a plugin for the sc script. It provides the functionality to pull and run sc compatible dockers, in a simplified and secure manner

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages