docker run --name kubia-container -p 8080:8080 -d kubia
docker run --rm -ti ubuntu:latest /bin/bash
docker run -ti --restart=always
To kill a container, run docker kill xxxcontainer-id
Remove all containers, run docker rm $(docker ps -a -q)
Remove all images, run docker rmi $(docker images -q -)
-d
means detach--name
is the name of the containerkubia
is the image namedocker stop kubia-container
docker start kubia-container
docker rm kubia-container
docker ps -a
show all the docker processesdocker ps
show only the started processesbefore performing the removal command, you can get a list of all non-running (stopped) containers that will be removed using the following command:
docker container ls -a --filter status=exited --filter status=created
To remove all stopped containers use the docker container prune command:
docker container prune
docker login
docker tag firstimage YOUR_DOCKERHUB_NAME/firstimage
docker push YOUR_DOCKERHUB_NAME/firstimage
minikube start --docker-env http_proxy=http://127.0.0.1:1080 --docker-env https_proxy=http://127.0.0.1:1080
minikube start --docker-env http_proxy=http://127.0.0.1:1080 --docker-env https_proxy=https://127.0.0.1:1080
minikube start --docker-env HTTP_PROXY=http://127.0.0.1:1080/ --docker-env HTTPS_PROXY=http://127.0.0.1:1080/ --docker-env NO_PROXY=index.docker.io,registry.hub.docker.com,
registry-1.docker.io,registry.docker-cn.com,
registry-mirror-cache-cn.oss-cn-shanghai.aliyuncs.com,
192.168.99.100 --registry-mirror https://registry.docker-cn.com