-
Run
docker login
docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: <username> Password: <password> Login Succeeded
-
Create a tag for alpine image using your Docker Hub username(namespace)
docker tag alpine <username>/distrust:latest
-
Push the image to Docker Hub
docker push <username>/distrust:latest
- Open Docker Hub
https://hub.docker.com/
in your browser
-
Enable Content Trust
-
Run
export DOCKER_CONTENT_TRUST=1
in terminalexport DOCKER_CONTENT_TRUST=1
-
Run
docker pull <username>/distrust:latest
to pull the docker iage from the Docker Hub Repository.docker pull <username>/distrust:latest Using default tag: latest No valid trust data for latest
-
Create a tag for alpine image using your Docker Hub username(namespace)
docker tag alpine <username>/trust:latest
-
Push the image to Docker Hub
docker push <username>/trust:latest
- Open Docker Hub
https://hub.docker.com/
in your browser
-
Run
docker pull <username>/trust:latest
to pull the docker iage from the Docker Hub Repository.docker pull <username>/trust:latest Using default tag: latest latest: Pulling from tilakt/dctrust Digest: sha256:5e8e0509e829bb8f990249135a36e81a3ecbe94294e7a185cc14616e5fad96bd Status: Image is up to date for <username>/trust:latest
-
Run
clean-docker
to stop all containers.(venv)root@we45: clean-docker 92200af86b18 ca94dab2d52e 92200af86b18 34c4adcf326d 86cd73d03ef1 ca94dab2d52e "docker rmi" requires at least 1 argument. See 'docker rmi --help'. Usage: docker rmi [OPTIONS] IMAGE [IMAGE...] Remove one or more images