Docker
Images and Dockerfiles
Autotasker also allows you to create Docker images or generate Dockerfiles separately, giving you more control over your container setup. You can choose to either create an image directly, or generate the Dockerfile that will later be used to build the image.
Creating Only the Image
If you want to create a Docker image without launching the container, you can use the --only-image option. This command will generate the image, but will not start it.
console
autotasker docker --only-image /path/to/your/directory
This is useful if you want to build the image for later use or to distribute it without immediately running the container.
Generating Only the Dockerfile
If you simply want to generate the Dockerfile, which contains the instructions to build the Docker image, but don’t need to build the image or start the container right away, use the --only-dockerfile option:
console
autotasker docker --only-dockerfile /path/to/your/directory