@RestController @Feature(cls=DOCKER) @RequestMapping(value="/docker/images") public class DockerImagesController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
DockerImagesController(DockerInfoService dockerInfoService) |
Modifier and Type | Method and Description |
---|---|
String |
createContainer(com.alibaba.fastjson.JSONObject jsonObject) |
String |
del(String id,
String imageId) |
String |
getNowLog(String id,
int line)
获取拉取的日志
|
String |
inspect(String id,
String imageId) |
String |
list(String id) |
String |
pullImage(String id,
String repository) |
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public DockerImagesController(DockerInfoService dockerInfoService)
@PostMapping(value="list", produces="application/json") @Feature(method=LIST) public String list(@ValidatorItem String id) throws Exception
Exception
@GetMapping(value="remove", produces="application/json") @Feature(method=DEL) public String del(@ValidatorItem String id, String imageId) throws Exception
Exception
@GetMapping(value="inspect", produces="application/json") @Feature(method=LIST) public String inspect(@ValidatorItem String id, String imageId) throws Exception
Exception
@GetMapping(value="pull-image", produces="application/json") @Feature(method=EXECUTE) public String pullImage(@ValidatorItem String id, String repository) throws Exception
Exception
@GetMapping(value="pull-image-log", produces="application/json") @Feature(method=LIST) public String getNowLog(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e") String id, @ValidatorItem(value=POSITIVE_INTEGER,msg="line") int line)
id
- idline
- 需要获取的行号Copyright © 2017–2022. All rights reserved.