Skip to content

Instantly share code, notes, and snippets.

@alirezameskin
Last active April 10, 2019 12:59
Show Gist options
  • Save alirezameskin/01c294cf707f201720f744d0fddc0734 to your computer and use it in GitHub Desktop.
Save alirezameskin/01c294cf707f201720f744d0fddc0734 to your computer and use it in GitHub Desktop.
def pull(image:String): Free[DockerOperation, String] = Free.liftF(Pull(image))
def run(image:String, command:String*): Free[DockerOperation, String] = Free.liftF(Run(image, command))
def exec(containerId:String, command:String*): Free[DockerOperation, String] = Free.liftF(Exec(containerId, command))
def kill(containerId:String): Free[DockerOperation, String] = Free.liftF(Kill(containerId))
def remove(containerId:String): Free[DockerOperation, String] = Free.liftF(Remove(containerId))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment