npx create-next-app --example with-docker nextjs-docker
# or
yarn create next-app --example with-docker nextjs-docker
# or
pnpm create next-app --example with-docker nextjs-docker- Install Docker on your machine.
- Build your container:
docker build -t next-with-docker ..
You can view your images created with docker images.