https://github.com/kiquetal/orchestration-go-scratch
https://github.com/kiquetal/orchestration-go-scratch
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiquetal/orchestration-go-scratch
- Owner: kiquetal
- Created: 2024-10-16T20:41:40.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T15:09:24.000Z (12 months ago)
- Last Synced: 2024-10-24T16:54:10.545Z (12 months ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Trying to understand the orchestration nuts & bolts
#### Docker commands
- Start a container: `docker run -d -p 80:80 --name webserver nginx`
- Stop a container: `docker stop webserver`
- Inspect a container: `docker inspect webserver`
- Remove a container: `docker rm webserver`
- Remove an image: `docker rmi nginx`
- List containers: `docker ps -a`
- List images: `docker images`
- List networks: `docker network ls`
- List volumes: `docker volume ls`
- List all containers: `docker ps -a`
- List all containers with their IDs: `docker ps -aq`
- Remove specific containers: `docker rm container_id````mermaid
sequenceDiagram
participant U as User
participant M as Manager
participant S as Scheduler
participant W as Worker
participant D as Docker ContainerU->>M: Send request to start/stop task
M->>S: Consult for available worker(s)
S-->>M: Return available worker(s)
M->>W: Assign task
W->>D: Run task
D-->>W: Update task state
W->>M: Report statistics
M->>M: Update records of tasks and workers```