docker_compose#

Launch Fluent through docker compose.

Classes:

ComposeBasedLauncher(*, container_dict)

Launch Fluent through docker or Podman compose.

class ansys.fluent.core.docker.docker_compose.ComposeBasedLauncher(*, container_dict)#

Bases: object

Launch Fluent through docker or Podman compose.

Methods:

__init__(*, container_dict)

check_image_exists()

Check if the image exists locally.

pull_image()

Pull a Docker image if it does not exist locally.

start()

Start the services.

stop()

Stop the services.

Attributes:

ports

Return the ports of the launched services.

__init__(*, container_dict)#
check_image_exists()#

Check if the image exists locally.

property ports: list[str]#

Return the ports of the launched services.

pull_image()#

Pull a Docker image if it does not exist locally.

start()#

Start the services.

Raises:
subprocess.CalledProcessError

If the command fails.

stop()#

Stop the services.

Raises:
subprocess.CalledProcessError

If the command fails.