Add snapshot/bycontainer.go to implement 'user-defined' scan works.
User could choose a docker image(now the default registry to pull this image is: docker hub) and let Dockyard to scan his/her image/app/vm by running this image.
Dockyard will start a scanning container by:
mount his/her image/app/vm directory to a certain directory inside container
pass the Dockyard server address, scan data type(dockerv1, appv1) and callbackID to the scanning process
start the scanning process. The last job of the scanning process is to POST the scanning result to Dockyard server by restful API.
Add snapshot/bycontainer.go to implement 'user-defined' scan works. User could choose a docker image(now the default registry to pull this image is: docker hub) and let Dockyard to scan his/her image/app/vm by running this image.
Dockyard will start a scanning container by: