Your app runs perfectly in Docker on your machine. Now the client needs to see it, click through it, and tell you whether it is ready. That last step is where a lot of projects stall: the build is done, but getting a running version in front of a non-technical reviewer turns into its own small infrastructure project.
This guide shows a practical way to turn a container into a review link your client can open in any browser, leave feedback on, and approve, without setting up a staging server, opening a tunnel to your laptop, or asking the client to create an account.
Why the usual shortcuts break down
Most teams reach for one of four shortcuts. Each works for some cases and fails in predictable ways for client review.
- Screenshots and screen recordings. Fast to send, but the client cannot click anything. Responsive layouts, forms and interactions stay untested, and feedback comes back as annotated images in an email thread.
- A tunnel to your local machine. Good for a quick look while you are online. The link dies when your laptop sleeps, and the client is reviewing whatever happens to be running locally at that moment.
- A shared staging server. Persistent and familiar, but someone has to provision it, keep it patched, and decide which branch or client is on it today. Two clients in review at once means juggling.
- Asking the client to run Docker. Rarely realistic. Your reviewer is a marketing lead or a founder, not someone who wants to install a container runtime.
What a client-ready review link needs
For a non-technical reviewer, a good review link has a short list of properties. It is HTTPS, so the browser does not warn them. It stays up for the length of the review, independent of your laptop. It shows exactly the version you meant to share. Feedback lands attached to the thing it is about, not in a separate document. And the approval is recorded on that specific version, so "looks good" is not lost in chat history. Once the review is over, the environment should disappear without anyone remembering to clean it up.
Two routes into Prev: from source or from your own image
Prev is a CLI-first service that runs your app as a hosted, time-limited review environment. There are two ways to get a containerized app into it.
Route A, from source. Run prev create in the project folder. Prev detects the project type from marker files (for example package.json, requirements.txt, Gemfile, go.mod, composer.json or a .csproj file), builds an image from its own template for that type, and exposes the default port. This is the fastest path when your app follows a standard layout. Note that this route uses Prev's template for the detected type, not your Dockerfile.
Route B, your own image. If your Dockerfile does something specific, such as system packages, a custom build step, or a non-standard start command, build the image yourself and deploy it with --image. Prev then runs that exact image and skips project detection. This is also the route for stacks without a built-in template, such as Java. The rest of this guide focuses on Route B.
Step by step: from docker build to client approval
-
Install the CLI and set your API key from the Prev dashboard.
curl -fsSL https://prev.sh/install.sh | sh export PREV_API_KEY="your-api-key-here" -
Build and tag the image the way you normally would. Use a specific tag per review round instead of latest, so every round is traceable.
docker build -t ghcr.io/your-agency/acme-portal:review-1 . docker push ghcr.io/your-agency/acme-portal:review-1The image has to live in a registry Prev can pull from. A public image works directly. For a private registry, check the registry note in the Prev Docker guide before you rely on it.
-
Deploy the image with the client review workflow switched on. Set --port to the port your container listens on. Without --port, an image preview uses port 80.
prev create --image ghcr.io/your-agency/acme-portal:review-1 --port 8080 --feedback --subdomain acme-reviewThe CLI returns an HTTPS URL. Send that link to your client. They open it, click the review flag on the right edge of the page, enter their name (email is optional), and click the elements they want to comment on. Each comment is pinned to that element, and they can request changes or approve. No account and no install on their side.
-
Read feedback where you work: in the dashboard's Feedback Inbox, with prev feedback in the terminal, or in the local mini-dashboard started with prev ui.
prev feedback acme-review --unread -
Need more than one sign-off, for example the client and your QA lead? Add approval slots. Prev then returns a separate review link per slot, and the review only counts as approved when every slot has approved.
prev create --image ghcr.io/your-agency/acme-portal:review-1 --port 8080 --feedback --approval-slots client,qa -
Ship the next round. Build and push a new tag (review-2) and deploy it as a new preview. Because each round has its own tag, you always know which build the client approved. If you deploy from source instead (Route A), prev create --to updates the existing URL in place and starts a new review round automatically.
When the review window ends, the preview expires on its own. On the Free plan a preview lives up to 3 days; paid plans allow up to 7, 10 or 14 days depending on the plan.
What fits, and when you still need a staging environment
Prev runs one web container per preview, exposing one HTTP port. That covers a lot of client work: a web app, an API with a frontend, a CMS, a marketing site, a dashboard.
- Configuration: pass environment variables with -e KEY=VALUE or --env-file. For image deploys, a local .env file is not picked up automatically, so pass it explicitly.
- Database: on Individual (as an add-on), Agency and Teams you can attach a managed PostgreSQL, MariaDB or MongoDB database with --db. Your container receives a DATABASE_URL environment variable. Data is created or imported manually through the dashboard; nothing syncs from production on its own.
- Access control: password protection with --credentials is available from the Individual plan up. IP allowlists are part of Teams.
- Multi-service systems: if your docker-compose setup has several services that all need to run together (workers, queues, search, several databases), a dedicated staging environment is the honest answer. Alternatively, package what the reviewer needs into one self-contained image that exposes one HTTP port.
Container tips that save a failed first deploy
- Listen on 0.0.0.0, not localhost, inside the container. A server bound to 127.0.0.1 is not reachable from outside the container.
- Match --port to the port your app actually listens on.
- Read configuration from environment variables, including DATABASE_URL, rather than baking secrets or hostnames into the image.
- Keep the image lean with a multi-stage build; smaller images move faster.
- If you build on an Apple Silicon Mac, consider a multi-platform build with docker buildx so the image is not tied to your laptop's CPU architecture.
- If the preview does not come up, check runtime output with prev logs <url-or-id>.
Your next client review does not need a staging server. Start on the free plan, deploy your image, and send the link. Start free
FAQ
Does my client need Docker, Git or a Prev account?
No. They open an HTTPS link in their browser, enter a name, and leave pinned feedback or approve.
Does Prev use my Dockerfile?
Only if you build the image yourself and deploy it with --image. When you deploy from source, Prev builds from its own template for the detected project type.
Can I use a docker-compose file with several services?
Prev runs one web container with one HTTP port per preview. For multi-service setups, use a dedicated staging environment or a single self-contained image. A managed database can be attached with --db on Individual (add-on), Agency and Teams.
Is client feedback included on the Free plan?
Yes. The feedback and review workflow is included on every plan, including Free. Free allows 1 active preview with a lifetime of up to 3 days.
Can I password-protect the review link?
Yes, with --credentials on Individual, Agency and Teams.
How do I show the client the next version?
Push a new image tag and deploy it as a new preview, so each review round maps to one build. Source deploys can be updated in place with prev create --to.