Skip to main content

Docker Administrator via CLI

Project description

Docker Manager CLI

Manage Docker interactively from the terminal. You can create and delete images, containers, networks and volumes. You can also create a yaml configuration file with which you can create one or more images, containers, networks and volumes.

Changelog

1.1.0

  • Containers
    • Improved log option

1.0.1

  • Containers
    • New refresh option
    • New log option
  • Images
    • New refresh option

1.0.0 Initial version

Main menu

From the main menu you can access Containers, Images, Volumes and Networks. You can also create all this from a yaml file.

Containers

From the menu you will be able to list or create containers

Containers list

It will show all containers, and their status, in ascending order. The order can be changed in descending order. You can enable the auto-completion option, which will filter the containers as you type. Another option is to select multiple containers, for example, to delete them.

Container options:

Descending order:

Autocomplete:

Multiselect:

Container creation

A container can be created from an existing image, or through a yaml file. First, select the image

Images

From the menu you will be able to list or create images

Images list

Like the containers, the list of images can be sorted in ascending and descending order, enable auto-completion and select multiple images

Image creation

An image can be created by pull, Dockerfile or yaml file

Pull

Pull the image

Dockerfile

Select a Dockerfile from your computer

Volumes

From the menu you will be able to list or create volumes

Volumes list

It will show the list of volumes

Volume options:

Volume creation

A volume can be created manually or yaml file

Manually

Enter name and driver to create the volume

Networks

From the menu you will be able to list or create networks

Networks list

Networks can be sorted in ascending and descending order, enable auto-completion and select multiple networks

Network options:

Network creation

A network can be created manually or yaml file

Manually

Enter name and driver to create the network

Yaml

A yaml file can be used to create containers, images, networks and volumes from the main menu, or from each of the options (containers, images, networks and volumes). An example of a file is:

images:
  - image:
      path: /path/to/dockerfile/
      dockerfile: Dockerfile
      tag: image-test:1.0.0
      nocache: True
      forcerm: True
      pull: True

  - image:
      path: /path/to/another/dockerfile/
      dockerfile: Dockerfile-python
      tag: python-image-test:1.0.0
      nocache: True
      forcerm: True
      pull: True
#      container_limits:
#        memory: 1073741824

containers:
  - container:
      image: container-test:1.0.0
      name: image-test:1.0.0
      ports:
        # container:host
        80: 8080
      mem_limit: 100m
      network: net-test
      restart_policy:
        Name: always

networks:
  - network:
      name: net-test
      driver: bridge
  - network:
      name: net-test2
      driver: bridge
  - network:
      name: net-test3
      driver: bridge

volumes:
  - volume:
      name: volumeTest
      driver: local

urllib3 warning

If you receive a warning like this:

NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020

You should install OpenSSL 1.1.1 or higher. More info here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockmancli-1.1.0.tar.gz (27.6 kB view hashes)

Uploaded Source

Built Distribution

dockmancli-1.1.0-py3-none-any.whl (32.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page