Documentation
¶
Overview ¶
Package docker wraps the docker / docker compose CLIs via os/exec, staying true to the Docker workflow developers already use.
Index ¶
- func Build(dir, dockerfile, tag string) error
- func ComposeDown(dir, composeFile string) error
- func ComposeLogs(dir, composeFile string, follow bool) error
- func ComposeUp(dir, composeFile string, build bool, envFile string) error
- func RemoveContainer(id string) error
- func Run(dir, tag string, hostPort, containerPort int, envFile string) (string, error)
- func RunLogs(containerID string, follow bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeDown ¶
ComposeDown stops and removes the compose project's resources.
func ComposeLogs ¶
ComposeLogs streams logs for the compose project (-f follow optional).
func RemoveContainer ¶
RemoveContainer force-removes a container by ID (ignores already-gone).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.