docker_elite 0.0.2+2 copy "docker_elite: ^0.0.2+2" to clipboard
docker_elite: ^0.0.2+2 copied to clipboard

A superior way of interacting with Docker

Docker Elite #

A superior way of interacting with Docker. Hecho en 🇵🇷 por Radamés J. Valentín Reyes.

Learn Docker #

First you must learn what Docker is and how it works. In my case I got started using this Udemy course.

Install Docker #

Linux #

Click here for Linux install guide

Windows #

Click here for Windows install guide

Mac #

Click here for Mac install guide


Note: Ensure that Docker is running before invoking any commands. Otherwise it will result in errors beign thrown.

Library Docs #

Pull image #

Docker Command:

docker pull imageName

Docker Elite:

String imagePullResult = await pullImage(
  imageName: testImage,
);

List Docker images #

Docker Command:

docker images

Docker Elite:

List<DockerImage> dockerImages = await listDockerImages();

Start a docker container #

Docker Command:

docker run imageName

Docker Elite:

String result = await runContainer(
  imageName: imageName,
  options: [],
  command: [],
  arguments: [],
);

List docker containers #

Docker Command:

docker ps

Docker Elite:

List<DockerContainer> containers = await listDockerContainers();

Docker Command:

docker ps -a

Docker Elite:

List<DockerContainer> containers = await listDockerContainers(true);

Stop docker container #

Docker Command:

docker stop imageName

Docker Elite:

String result = await stopContainer(
  containerID: dockerContainer.id,
);

Remove container #

Docker Command:

docker rm imageName

Docker Elite:

String result = await removeContainer(
  containerID: dockerContainer.id,
);

Remove image #

Docker Command:

docker rmi imageName

Docker Elite:

String result = await removeImage(
  imageName: imageName,
);

Build image #

Docker Command:

docker build pathOrUrl

Docker Elite:

String result = await buildImage(
  pathOrUrl: pathOrUrl,
  options: [],
);

Contribute/donate by tapping on the Pay Pal logo/image #


References #

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A superior way of interacting with Docker

Documentation

API reference

License

GPL-3.0 (license)

More

Packages that depend on docker_elite