- Add executable permissions for
dockerCommands.sh
chmod u+x dockerCommands.sh
- Build image & run container
./dockerCommands.sh build
Use script dockerCommands.sh
:
build
- build image & run containerstop
- stop containerstart
- start container
Example: ./dockerCommands.sh start
All variables are set in .env
file.