Question: Instructions: 1 . Create a DockerHub account: Sign up for a new account if you don't have one already. 2 . Build and push an

Instructions:
1. Create a DockerHub account:
Sign up for a new account if you don't have one already.
2. Build and push an image to DockerHub:
Make sure you have Podman or Docker installed on your local machine.
Run a new container with the following requirements:
Name: assignment2
Image: alpine
Run it with a terminal interactive and connected to the sh terminal emulator
Once inside the container, create the file /my_assignment2.txt and make sure the file has the following content:
Getting ready to learn about containers! - student name:
Without stopping the container:
Open a second terminal window in your host computer to commit the current state of the container into a new image
use the following command to commit the image:
podman commit /
3. Publish your image to the registry
Log in to DockerHub from the command line using the following command:
podman login docker.io
Push the created image to DockerHub:
podman push /

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!