2017-03-16 09:06:38 +01:00
Test 9-03 User pull signed images(DB mode)
=======
# Purpose:
2017-04-11 06:36:35 +02:00
To verify user can pull signed images.
2017-03-16 09:06:38 +01:00
# References:
User guide
# Environment:
2017-04-11 06:36:35 +02:00
* This test requires one Harbor instance is running and available.
* A Linux machine with Docker CLI(Docker client) installed.
2017-03-16 09:06:38 +01:00
# Test Steps:
2017-04-14 09:51:31 +02:00
**NOTE:**
In below test, project X should be replaced by an existing project and < harbor_ip > should be replaced by your harbor's ip or FQDN. If you are using a self-signed certificate,make sure to copy the CA root cert into ```/etc/docker/certs.d/< harbor_ip > ``` and ```$HOME/.docker/tls/< harbor_ip > :4443/```
2017-03-16 09:06:38 +01:00
2017-04-11 06:36:35 +02:00
1. Login UI.
2017-04-14 09:51:31 +02:00
2. On Docker client, run
```sh
export DOCKER_CONTENT_TRUST=1
export DOCKER_CONTENT_TRUST_SERVER=https://< harbor_ip > :4443
```
2021-02-18 03:54:32 +01:00
and login Harbor.
2017-04-11 06:36:35 +02:00
3. Pull an image from project X.
2017-03-16 09:06:38 +01:00
# Expected Outcome:
2017-04-11 06:36:35 +02:00
* Image can be pulled successful.
2017-03-16 09:06:38 +01:00
# Possible Problems:
None