Skip to content

gvillela7/snake-docker-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-docker-cli

This is a personal project made in Golang, using cobra-cli, to visualize containers, services and nodes in a docker swarm. Coming soon management of services and containers.

IMPORTANT:

Do not use port 2375 in production reference

Step #1

Create a .env file inside cmd -> config, this file should have the following content: DOCKER_HOST=http://localhost:2375/v1.43

Step #2 docker docs

  1. Execute this command to open an override file for docker.service in a text editor.
sudo systemctl edit docker.service
  1. Add or modify the following lines, substituting your own values.
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375
  1. Save the file
  2. Reload the systemctl configuration.
sudo systemctl daemon-reload
  1. Restart Docker.
sudo systemctl restart docker.service
  1. Run the command in the project root
go install
go build .

Usage

 ./snake-docker-cli -h
 ./snake-docker-cli cluster --list

Cluster

 ./snake-docker-cli container --list

List Containers

 ./snake-docker-cli container --show d622bbd3

Show Container

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages