1 Login
docker login --username=ambiorixg12
2 Create image
docker commit 284631a6df50 ambiorixg12/apps:lamp-v1
3 push your image
docker push ambiorixg12/apps:lamp-v1
output
lamp-v1: digest: sha256:3668a5875472f979317b8a84c60a1e87800a867f17b91e31769506e1ea56ff60 size: 742
testing on other machine
1 download your image
docker pull ambiorixg12/apps:lamp-v1
2 Create the container using the image
docker run -ti -p 7070:80 0b8c43b4b6a4
login http://145.232.165.238:7070/phpmyadmin/
Sourcadmin /@789456
- Create the image By using
docker commit <existing-container> <hub-user>/<repo-name>[:<tag>]
to commit changes
Now you can push this repository to the registry designated by its name or tag.
$ docker push <hub-user>/<repo-name>:<tag>
The image is then uploaded and available for use by your teammates and/or the community.
https://docs.docker.com/docker-hub/repos/#:~:text=To%20push%20an%20image%20to,docs%2Fbase%3Atesting%20).
No hay comentarios:
Publicar un comentario