docker

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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) error

func Stop added in v0.10.0

func Stop(containerID string) error

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

Types

type ChmodError added in v1.2.3

type ChmodError struct {
	// contains filtered or unexported fields
}

func (*ChmodError) Error added in v1.2.3

func (e *ChmodError) Error() string

type ContainerNotFoundError added in v1.2.3

type ContainerNotFoundError struct {
	// contains filtered or unexported fields
}

func (*ContainerNotFoundError) Error added in v1.2.3

func (e *ContainerNotFoundError) Error() string

type ContainerStartError added in v1.2.3

type ContainerStartError struct {
	// contains filtered or unexported fields
}

func (*ContainerStartError) Error added in v1.2.3

func (e *ContainerStartError) Error() string

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