difference from docker-compose
DockerContainer
class defines a container, for example use the following code to define a container running the whoami image. Start it using phi start resources.py
App
:
phi stop resources.py
DockerImage
class defines an image, for example use the following code create your own python image and run it in a container. Build it using phi start resources.py
Dockerfile
in the current directory.