How to commit with my laravel application files

If assume i will commit from one container, that container have application files in var/www/

docker commit

Then i’'ll run a image

docker run -d -p 8080:80 test-app:latest

but not showing that files, only list on html folder not have files

what i do?

Hello.

Can you share the Dockerfile you used to build the test-app:latest you made?

best regards,
limsangwoon

Please share the full command, as it can’t be complete like this.

The syntax is docker container commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]

Using docker commit is actually a bad practice. You might want to learn how to write a Dockerfile, in order to get repeatable build.