docker_elite 0.0.1+1 docker_elite: ^0.0.1+1 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,
arguments: [
"sleep",
"infinity",
],
);
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,
);