mirror of
				https://github.com/valentineus/simple-container.git
				synced 2025-11-04 00:39:44 +03:00 
			
		
		
		
	Added example debugger output
This commit is contained in:
		
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@@ -20,7 +20,7 @@ import Container from 'simple-container';
 | 
				
			|||||||
var container = new Container();
 | 
					var container = new Container();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Create the container */
 | 
					/* Create the container */
 | 
				
			||||||
container.create('postgres:alpine');
 | 
					container.create('hello-world:latest');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Start the container */
 | 
					/* Start the container */
 | 
				
			||||||
container.start();
 | 
					container.start();
 | 
				
			||||||
@@ -89,6 +89,19 @@ Details in
 | 
				
			|||||||
## Debugging
 | 
					## Debugging
 | 
				
			||||||
Use the `DEBUG` variable with the `container` option.
 | 
					Use the `DEBUG` variable with the `container` option.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Result of output:
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					$ DEBUG="container" node ./example.js
 | 
				
			||||||
 | 
					  container { status: 'Pulling from library/postgres', id: 'alpine' } +0ms
 | 
				
			||||||
 | 
					  container { status: 'Already exists',
 | 
				
			||||||
 | 
					  container   progressDetail: {},
 | 
				
			||||||
 | 
					  container   id: '019300c8a437' } +0ms
 | 
				
			||||||
 | 
					  container { status: 'Pulling fs layer',
 | 
				
			||||||
 | 
					  container   progressDetail: {},
 | 
				
			||||||
 | 
					  container   id: '885fa9f8b950' } +0ms
 | 
				
			||||||
 | 
					...
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## License
 | 
					## License
 | 
				
			||||||
[](https://github.com/eslint/eslint)
 | 
					[](https://github.com/eslint/eslint)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user