Docker
Creating a Container
Creating a container with Autotasker is a simple process that transforms your application directory into a containerized environment. This allows you to run your application in isolation, ensuring consistency across different systems with minimal setup.
To create a container, simply provide the path to your application directory:
console
autotasker docker /path/to/your/directory
Configuring the Port
By default, Autotasker assigns port 80 to your container’s services, making it easily accessible through standard HTTP requests. However, you can specify a custom port if needed.
To define a different port, use the -p or --port option.
console
autotasker docker -p 8080 /path/to/your/directory
Specifying the Version
Autotasker automatically creates the container with the latest available version of the runtime or framework. However, if your application requires a specific version, you can easily configure that during container creation.
To specify the version, use the -v or --version option:
console
autotasker docker -v 3.12 /path/to/your/directory