maple.backend.podman.container module

Python API for podman interface in maple

maple.backend.podman.container.commit()

Commit changes from local container to local image

maple.backend.podman.container.execute(command)

Run local image in a container

Parameters

command (string of command to execute) –

maple.backend.podman.container.list()

List all containers on system

maple.backend.podman.container.notebook(port='4321')

Launch ipython notebook inside the container

Parameters
  • image (image name) –

  • port (port id ('4321')) –

maple.backend.podman.container.pour(options='')

Pour local image in a container, opposite of maple rinse

Parameters

options (string of options) –

maple.backend.podman.container.publish(cmd_list=None)

Publish container to an image

Parameters

cmd_list (list of commands to publish) –

maple.backend.podman.container.rinse(rinse_all=False)

Stop and remove the local container, opposite of maple pour

Parameters

rinse_all ((True/False) flag to rinse all container) –

maple.backend.podman.container.run(command, options='')

Run and rinse the local container

Parameters
  • command (command string) –

  • options (run options) –

maple.backend.podman.container.shell()

Get shell access to the local container