docker

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cp added in v0.8.0

func Cp(tagForLog string, from string, containerID string, to string) error

func GetContainerIDFromWorkspaceFolder added in v0.10.0

func GetContainerIDFromWorkspaceFolder(workspaceFolder string) (string, error)

workspaceFolder で指定したディレクトリに対応するコンテナのコンテナ ID を返却する

func GetID added in v0.10.0

func GetID(psCommandResult string) (string, error)

func Ps

func Ps(filter string) (string, error)

`docker ps --format json` コマンドを実行する。

func Rm

func Rm(containerID string) error

`docker rm -f ${containerID}` コマンドを実行する。

func Run

func Run(args []string, vimFilePath string, cdrPath string, configDirForDocker string, vimrc string, defaultRunargs []string)

func Stop added in v0.10.0

func Stop(containerID string) error

`docker stop -f ${containerID}` コマンドを実行する。

Types

type PsCommandResult

type PsCommandResult struct {
	ID string `json:"ID"`
}

`docker ps --format json` コマンドの実行結果スキーマ

Example:

{
}

func UnmarshalPsCommandResult

func UnmarshalPsCommandResult(data []byte) (PsCommandResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL