| 
									
										
										
										
											2017-07-13 16:09:42 +03:00
										 |  |  | #!/usr/bin/env ssm | 
					
						
							| 
									
										
										
										
											2014-02-22 18:32:37 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-02 21:35:27 +04:00
										 |  |  | #service_respawn='true' | 
					
						
							| 
									
										
										
										
											2017-07-13 16:09:42 +03:00
										 |  |  | service_command=( '/usr/bin/dockerd' -s overlay2 ) | 
					
						
							| 
									
										
										
										
											2014-02-22 18:32:37 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | update() { | 
					
						
							| 
									
										
										
										
											2017-07-13 16:09:42 +03:00
										 |  |  | 	stop && { | 
					
						
							| 
									
										
										
										
											2014-02-22 18:32:37 +04:00
										 |  |  | 		wget "https://get.docker.io/builds/Linux/x86_64/docker-latest" -O "$service_command" | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-13 16:09:42 +03:00
										 |  |  | 	start | 
					
						
							| 
									
										
										
										
											2014-02-22 18:32:37 +04:00
										 |  |  | } |