Answer the question
In order to leave comments, you need to log in
How to properly assign a list of values to a variable?
there is a task to clean Artifactory from unnecessary docker images
for this I use
usage: cleaner.py [-h] [--quiet] [-v] [-U [ARTIFACTORY_URL]] [-u [ARTIFACTORY_USER]] [-p [ARTIFACTORY_PASSWORD]] [-S] {docs,docker,pypi} ...
positional arguments:
{docs,docker,pypi}
optional arguments:
-h, --help show this help message and exit
--quiet Don't show info messages
-v, --verbose Increase logs verbosity
-U [ARTIFACTORY_URL], --artifactory-url [ARTIFACTORY_URL]
Artifactory URL
-u [ARTIFACTORY_USER], --artifactory-user [ARTIFACTORY_USER]
Artifactory user
-p [ARTIFACTORY_PASSWORD], --artifactory-password [ARTIFACTORY_PASSWORD]
Artifactory password
-S, --artifactory-secure
Does Artifactory use SSL or not
docker run -it --rm $DOCKER_IMAGE \
-u $ARTIFACTORY_USER \
-p $ARTIFACTORY_PASSWORD \
-U $ARTIFACTORY_URL \
docker $REPO remove any --in v1.0.1-cicd.309 --force
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question