LAB 7.2 - Section Image caching and build times
Hi,
It looks like in the LAB 7.2 - Section Image caching and build times some information was omitted prior to starting this.
From reading the output of the first command the Dockerfile used is not the one created just prior to this as it is using a different base image specified in FROM.
Prior the FROM was configured to use alpine and the output seems to be using the official nginx Dockerfile to some extent as it is using the buster-slim base image.
Using the basic Dockerfile created prior to this section will cause the subsequent steps to file with a missing file error for the ln to /var/log/nginx/access.log.
Looking further down the lab there are steps described that are already in the official nginx Dockerfile so that would somewhat negate the reason for having this lab.
Please let me know if there is a basic Dockerfile that needs to be used for this or if this lab needs to be performed on the official nginx Dockerfile.
Regards,
Ramon
Comments
-
Hi Ramon,
You are correct, there is no continuity between the first section of Lab 7.2 where we build an image from the custom Dockerfile which includes
FROM alpine, and the following section "Image caching and build times" where the focus is on local build times while using the default nginx Dockerfile from Docker Hub.Perhaps a new directory would have helped to clarify this.
Thanks for pointing this out. We will try to update the lab exercise to clarify the shift in Dockerfiles between the two sections of Lab 7.2
Regards,
-Chris1 -
Hi Chris,
Thanks for the quick response. I did get the official docker file and was able to continue.
Other then that I am very happy with the course.Kind Regards,
Ramon
1 -
I am running into the same issue.
ln: /var/log/nginx/access.log: No such file or directory
@RSchipper , you mentioned a workaround, getting an official dockerfile. How should I go about this @chrispokorni ?
TIA.0 -
Hi @Jenad1kr,
In order to retrieve a
Dockerfileyou go to https://hub.docker.com/, you type "nginx" in the Search box, then click on the first result for the official nginx image, then you will find a section named Supported tags and respective Dockerfile links where you click the link for thelatesttagged image and that should direct you to the Dockerfile on github.Regards,
-Chris2
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 755 Linux Foundation IT Professional Programs
- 375 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 980 Programming and Development
- 310 Kernel Development
- 652 Software Development
- 995 Software
- 387 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)