mirror of
				https://github.com/valentineus/simple-container.git
				synced 2025-11-04 00:39:44 +03:00 
			
		
		
		
	Release of version 1.0.0
This commit is contained in:
		
							
								
								
									
										25
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								README.md
									
									
									
									
									
								
							@@ -22,6 +22,7 @@ npm install --save simple-container
 | 
				
			|||||||
A simple example that creates and starts a container:
 | 
					A simple example that creates and starts a container:
 | 
				
			||||||
```JavaScript
 | 
					```JavaScript
 | 
				
			||||||
import Containers from 'simple-container';
 | 
					import Containers from 'simple-container';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var containers = new Containers();
 | 
					var containers = new Containers();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
containers.create('hello-world:latest').then(container => {
 | 
					containers.create('hello-world:latest').then(container => {
 | 
				
			||||||
@@ -168,30 +169,6 @@ containers.info('21ae4a54be582d13fffd796341b3561a8c8e0c59dd6c6c3239529188e2b3321
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Debugging
 | 
					 | 
				
			||||||
Use the `DEBUG` variable with the `containers` option.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Result of output:
 | 
					 | 
				
			||||||
```bash
 | 
					 | 
				
			||||||
$ DEBUG="containers" 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
 | 
					 | 
				
			||||||
...
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Or redefine the function to your own:
 | 
					 | 
				
			||||||
```JavaScript
 | 
					 | 
				
			||||||
containers.debug = function() {
 | 
					 | 
				
			||||||
    var args = Array.prototype.slice.call(arguments);
 | 
					 | 
				
			||||||
    /* Debugger code */
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## License
 | 
					## License
 | 
				
			||||||
[](https://github.com/eslint/eslint)
 | 
					[](https://github.com/eslint/eslint)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "simple-container",
 | 
					    "name": "simple-container",
 | 
				
			||||||
    "version": "0.0.0-beta.3",
 | 
					    "version": "1.0.0",
 | 
				
			||||||
    "description": "Simple and fast work with the Docker container",
 | 
					    "description": "Simple and fast work with the Docker container",
 | 
				
			||||||
    "homepage": "https://github.com/valentineus/simple-container",
 | 
					    "homepage": "https://github.com/valentineus/simple-container",
 | 
				
			||||||
    "license": "MIT",
 | 
					    "license": "MIT",
 | 
				
			||||||
@@ -18,7 +18,6 @@
 | 
				
			|||||||
    "keywords": [
 | 
					    "keywords": [
 | 
				
			||||||
        "minimalism",
 | 
					        "minimalism",
 | 
				
			||||||
        "container",
 | 
					        "container",
 | 
				
			||||||
        "interface",
 | 
					 | 
				
			||||||
        "testing",
 | 
					        "testing",
 | 
				
			||||||
        "docker",
 | 
					        "docker",
 | 
				
			||||||
        "simple",
 | 
					        "simple",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user