Step 6: Build the Docker Image

The Docker build command creates the Docker image using the Docker file. The command differs slightly depending on whether you are installing as a root user or as a non-root user.

Procedure

  • Use one of the following commands based on whether you are a root user or a non-root user.
    User Command
    Root User docker build -f Dockerfile.psu --build-arg CFROOT=/PSU801 --build-arg CFUSER=root -t library/psu8.0.1 ./
    Non-root User docker build -f Dockerfile.psu --build-arg CFROOT=/PSU801NonRoot --build-arg CFUSER=mftuser -t library/psu8.0.1nonroot ./