Skip to content

Repositorio creado para probar la construcción y configuración de un contenedor en Docker.

License

Notifications You must be signed in to change notification settings

sebaxtian/test-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-docker

Repositorio creado para probar la construcción y configuración de un contenedor en Docker.

Guia

https://docs.docker.com/get-started/part2/

Hub Docker

https://hub.docker.com/r/sebaxtian/test-docker/

Instrucciones

# Create image using this directory's Dockerfile
docker build -t friendlyname .
# Run "friendlyname" mapping port 4000 to 80
docker run -p 4000:80 friendlyname
# Same thing, but in detached mode
docker run -d -p 4000:80 friendlyname
# See a list of all running containers
docker ps
# Gracefully stop the specified container
docker stop <hash>
# See a list of all containers, even the ones not running
docker ps -a
# Force shutdown of the specified container
docker kill <hash>
# Remove the specified container from this machine
docker rm <hash>
# Remove all containers from this machine
docker rm $(docker ps -a -q)
# Show all images on this machine
docker images -a
# Remove the specified image from this machine
docker rmi <imagename>
# Remove all images from this machine
docker rmi $(docker images -q)
# Log in this CLI session using your Docker credentials
docker login
# Tag <image> for upload to registry
docker tag <image> username/repository:tag
# Upload tagged image to registry
docker push username/repository:tag
# Run image from a registry
docker run username/repository:tag

About

Repositorio creado para probar la construcción y configuración de un contenedor en Docker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages