You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'build' command in docker-slim has a number of optional parameters to cover these 'docker run' options...
The '--mount' option is like the '-v' option you have in the example.
The '--entrypoint' option is identical to the '--entrypoint' in 'docker run'.
The '--cmd' option is used to pass the command line parameters you pass at the end of the 'docker run' command.
'docker-slim build' also has a few extra options ('--env', '--workdir', and '--expose'), but they are not used yet. Any contributions will be greatly appreciated here!
Say I run my docker image named sample-image using this command:
docker run -dti --name=sample-image -u=0 --pid=host --net=host --uts=host --privileged=true -p 9279:9279 -v /tmp:/tmp:rw --entrypoint=/entrypoint.sh -e LISTEN_PORT=80 -e PROTOCOL=http -e BACKEND_IP=127.0.0.1 -e BACKEND_PORT=9100 sample-image -a 40.23.123.75
Now I am not able to understand how to exactly run my docker image with docker-slim with all these arguments, so please explain how to do that!
Thanks
The text was updated successfully, but these errors were encountered: