|
|
## Docker image HOW-TO
|
|
|
|
|
|
1. Login as `root`
|
|
|
|
|
|
2. Check if docker service is started:
|
|
|
|
|
|
```sh
|
|
|
service docker status
|
|
|
```
|
|
|
|
|
|
3. If service is down start it:
|
|
|
|
|
|
```sh
|
|
|
service docker start
|
|
|
```
|
|
|
|
|
|
4. Show running containers list:
|
|
|
|
|
|
```sh
|
|
|
docker ps -a
|
|
|
```
|
|
|
|
|
|
5. Build docker image:
|
|
|
|
|
|
```sh
|
|
|
docker build -t pheix-core-perl6-image $HOME/git/pheix-pool/docker-core-perl6
|
|
|
|
|
|
```
|
|
|
|
|
|
6. Run built image:
|
|
|
|
|
|
```sh
|
|
|
docker run -it pheix-test-image
|
|
|
```
|
|
|
|
|
|
7. Login to registry.gitlab.com:
|
|
|
|
|
|
```sh
|
|
|
docker login registry.gitlab.com
|
|
|
```
|
|
|
|
|
|
8. Create tag for pheix-core-perl6-image
|
|
|
|
|
|
```sh
|
|
|
docker tag pheix-core-perl6-image registry.gitlab.com/pheix-pool/core-perl6
|
|
|
```
|
|
|
|
|
|
9. Push pheix-core-perl6-image to registry.gitlab.com
|
|
|
|
|
|
```sh
|
|
|
docker push registry.gitlab.com/pheix-pool/core-perl6
|
|
|
``` |
|
|
\ No newline at end of file |