docker-registry/README.md
2023-11-17 10:01:04 +01:00

34 lines
758 B
Markdown

# DOCKER REGISTRE AVEC UI
Ce projet a pour but d'instancier un registre Docker sécurisé par mot de passe et
accessible via une UI. Votre Docker Hub!
### CREATION D'UN PASSWORD:
Ici, remplacer testuser et testpassword par le nom d'utilisateur et le mot de passe désiré.
```sh
sudo apt-get install apache2-utils
htpasswd -Bbn testuser testpassword > registry-config/htpasswd
```
### LANCER LA STACK
```sh
docker-compose up -d
```
### SE CONNECTER A L'ADRESSE:
http://locahost:8087
### POUSSER UNE IMAGE:
Login au docker registry (nécessaire une fois):
```sh
docker login localhost:5000
```
Entrer l'utilisateur et le mot de passe créés plus tôt, puis:
```sh
docker tag localhost/mon_image:tag
docker push localhost/mon_image:tag
```