This script provides a command-line interface for managing Jupyter environments using Docker. You can create, start, stop, delete, export, and import environments with ease.
To create a new environment, use the following command:
./colab.sh create_env <env-name>
Example:
./colab.sh create_env myenvironment
To access Jupyter Notebook, open a web browser and go to:
http://<env-name>.jupyter.localdev.me
Example:
http://myenvironment.jupyter.localdev.me
To delete an existing environment, use this command:
./colab.sh delete_env <env-name>
Example:
./colab.sh delete_env myenvironment
To start a stopped environment, run:
./colab.sh start_env <env-name>
Example:
./colab.sh start_env myenvironment
To stop a running environment, use the following command:
./colab.sh stop_env <env-name>
Example:
./colab.sh stop_env myenvironment
To export an environment to a compressed archive, use this command:
./colab.sh export_env <env-name>
Example:
./colab.sh export_env myenvironment
This will create a file named myenvironment.tar.xz
.
To import an environment from a compressed archive, use:
./colab.sh import_env <archive-name>
Example:
./colab.sh import_env myenvironment.tar.xz
To list all available environments, run:
./colab.sh list_envs
This will display all environments created using this script.
- Ensure that the project names conform to Docker Compose service name standards:
- Start with a lowercase letter or digit
- Contain only lowercase letters, digits, and hyphens
- End with a lowercase letter or digit
- Be at most 63 characters long