DEV Community

Discussion on: Learn Docker basics quickly!

Collapse
 
patricnox profile image
PatricNox

If I would need to use a script outside the container that executes a bash command inside the container using the default user, what's the best practice?

33 is macOS default user id
1000 is Linuxs

and windows can't even use .sh files

The reason behind this is cus the application environment is configurated on the named database container, meaning we cant run commands outside the container as it would imply the settings are wrong.

Some comments have been hidden by the post's author - find out more