SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is not a recommended Dockerfile Directive?
A
FROM
B
COPY
C
MAINTAINER
D
LABEL
E
EXPOSE
Explanation: 

Detailed explanation-1: -Which of following statements is true about the architecture of Docker? The docker command executes REST API calls. All answers are true.

Detailed explanation-2: -The FROM instruction must always be the first instruction in the Dockerfile. As an argument, you provide a name and an optional tag for an image that should be used as the base for your Docker container.

Detailed explanation-3: -FROM openjdk:13-jdk-alpine. LABEL maintainer="Manu Manjunatha <manu.mjava4coding.com>” LABEL description="This example Dockerfile installs NGINX.” MAINTAINER Manu Manjunatha <manu.mjava4coding.com> ARG JAR FILE=target/*.jar. COPY $JAR FILE app.jar. ENTRYPOINT ["java", “-jar", “/app.jar"]

There is 1 question to complete.