Skip to content

Commit

Permalink
ENV DEBIAN_FRONTEND=nonintercative
Browse files Browse the repository at this point in the history
  • Loading branch information
TeroKeso authored Oct 10, 2023
1 parent bc73d2b commit 049afd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/dockerimages.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ docker build -t my_first_image .

Once the image is successfully built, you can run a container using the following command:
```bash
docker run my-first-image
docker run my-first-image:latest
```
**Step 6: Access the interactive terminal and use nano to create a text file called new.txt**

Expand Down Expand Up @@ -387,6 +387,9 @@ By following these steps, you can keep your Docker image up-to-date with the lat
Write a Dockerfile to build a Docker image using Ubuntu. Include the MySQL database service in your image and push it to DockerHub. Tag the image as "username/ubuntu-git:1.1".
`Note` : Sometimes Debian baced systems will try to prompt user interaction when installing packages. By adding `ENV DEBIAN_FRONTEND=nonintercative` you will tell to Ubuntu Apt to not prompt for user input and use the default option.
2. **Task 2: Running and Verifying the Image**
Run the Docker image you pushed to DockerHub. Access the interactive terminal and verify that MySQL is installed (type `sudo mysql` in the terminal). If you get the MySQL prompt, it means it's installed. To exit, type `exit`.
Expand Down

0 comments on commit 049afd2

Please sign in to comment.