Running your application locally in a container (Linux)
Use a container for testing locally on a Linux server, to run the application in an environment that is similar to the production environment. The SDK creates a base image, which is identical to the base image that will run on the Guardium production environment.
Before you begin
Verify that Docker is running.
After you create and run your application locally (Running your application locally), run the application locally using a Docker CentOS container by entering the command
grd_sdk run -d -w <path to app>, for example
grd_sdk run -d -w ./testapp.If your get permission errors, try
sudo grd_sdk run -d -w <path to app>
Open your browser and test
- To stop your application, press Ctrl+C.