Compare commits
	
		
			2 Commits
		
	
	
		
			587287fb82
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 45f2c61c17 | |||
| dd30ade94b | 
| @@ -76,6 +76,10 @@ export default defineConfig({ | |||||||
|           { text: 'Local DB (PostgreSQL)', link: '/docker/local-db-pg' }, |           { text: 'Local DB (PostgreSQL)', link: '/docker/local-db-pg' }, | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|  |       { | ||||||
|  |         text: 'Docker Swarm', | ||||||
|  |         link: '/docker-swarm/', | ||||||
|  |       }, | ||||||
|       { |       { | ||||||
|         text: 'EF Core', |         text: 'EF Core', | ||||||
|         link: '/ef-core/', |         link: '/ef-core/', | ||||||
|   | |||||||
							
								
								
									
										27
									
								
								docs/docker-swarm/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								docs/docker-swarm/index.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | |||||||
|  | # Docker Swarm Snippets and Musings | ||||||
|  |  | ||||||
|  | ## Updating Services | ||||||
|  |  | ||||||
|  | View services: | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | docker service ls | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | To scale a service up or down: | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | docker service scale <service_name>=<number_of_replicas> | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Sometimes services get stuck or need to be forcefully updated: | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | docker service update --force <service_name> | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ::: tip | ||||||
|  |  | ||||||
|  | Sometimes if you need to force containers to restart use the update force (e.g. after restarting a node). | ||||||
|  |  | ||||||
|  | ::: | ||||||
| @@ -26,6 +26,10 @@ hero: | |||||||
|       text: Docker |       text: Docker | ||||||
|       link: /docker/ |       link: /docker/ | ||||||
|  |  | ||||||
|  |     - theme: alt | ||||||
|  |       text: Docker Swarm | ||||||
|  |       link: /docker-swarm/ | ||||||
|  |  | ||||||
|     - theme: alt |     - theme: alt | ||||||
|       text: EF Core |       text: EF Core | ||||||
|       link: /ef-core/ |       link: /ef-core/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user