Skip to content
Taha Ozket edited this page Jun 2, 2018 · 7 revisions

Instainer Documentation

Accessing Container Data

After creating container on instainer automatically creates a Git repo and Git user for your volumes and pushes volume data to repository. You can easily clone Git repo and make changes then push them to back Instainer Git Repo. After pushing your changes instainer detects changes and deploys your changes to your container.

Create a container using instainer cli add -v parameter to create a Git repository for specified directory.

instainer run -v /usr/share/nginx/html nginx

Container Details

Copy Git URL and Git access information from response;

------------Git Information------------
Git User      = 1bd743c9
Git Password  = 47b2a89a

----------Volumes Information----------
Git URL  =

Clone repository, change file and push your changes

git clone http://<USERNAME><REPO_NAME>
echo “Hi from instainer” > index.html
git add index.html
git commit -m “index.html changed”

Check your nginx container via web browser

------------Port Information------------
Container Port    80/tcp
Instainer Port

Instainer REST API Documentation

Run container


Run container with custom parameters

    volumeDirs: [
envVars: [

volumeDirs: Defined dirs will be deployable over Git

envVars: Will be use when running container

Image Search


Docker Compose Up

Request Body : docker-compose.yml content

Container Logs


Instainer CLI Commands

Basic Commands

Running a container

instainer run nginx

Listing containers

instainer ps

Custom volume management

instainer run -v /var/www/html nginx

Custom environment variables

instainer run -e MYSQL_ROOT_PASSWORD=v3rys3cR3t mysql

Compose Commands

Running containers with docker-compose.yml

instainer compose up docker-compose.yml

Container Commands

Accessing logs

instainer logs  <CONTAINER_ID>

Executing commands on container

instainer exec <CONTAINER_ID> command

Access to container’s bash

instainer bash <CONTAINER_ID>