Sign inSign up

ramacloud/my-ubuntu

By ramacloud

•Updated over 8 years ago

Ubuntu is a Debian-based Linux operating system based on free software.

Image
0

113

ramacloud/my-ubuntu repository overview

Pull The Ubuntu Image from Docker Hub This command will search for a local image and if one does not exist it will pull remotely from docker hub.

docker run -it -d ubuntu List Container Activity Confirm we have run our Ubuntu container.

docker ps -a Access our Running Ubuntu Container Log into our container as root.

docker exec -it container_id bash Make a Change - Create a Directory Just to prove that we can make changes within this container and that those changes will persist throughout this process.

mkdir tutorials Logout of the Container exit List Container Activity docker ps -a List Docker Images docker images Create a Repository in Docker Hub Navigate the UI on Docker Hub to create a public repository which we will push to.

Stop the Docker Container docker stop container_id Commit Our Container Changes to the Local Ubuntu Image This will commit our container to our image.

docker commit container_id username/tutorials Push the Image to Docker Hub docker push username/tutorials Log into from the command line using your Docker Hub login credentials.

If any doubt let me know fellow this link given or video:-(Thanks )

Link:-https://www.youtube.com/watch?v=dU5112nqViY⁠

Tag summary

Content type

Image

Digest

Size

40 MB

Last updated

over 8 years ago

docker pull ramacloud/my-ubuntu