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

Libraries

docker_elite