Skip to content
One way of dockerizing Sybase
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Building Sybase image(s)

A sketch of how one might Dockerize Sybase.

Preparation - Obtain Sybase installation archive

First, you need to obtain the Sybase installation archive and put it into a directory called installation_archive:

mkdir base/installation_archive

cd base/installation_archive
curl -OLS

cd ../..

The installation_archive directory is not under version control. You must ensure that you have an appropriate licence for your use case.


The bash script executes the build process. Both the Sybase installation and the database creation take rather long periods of time. The script needs to be executed only once. (However, should you change the database/table definitions in base/docker/createXXX, you will have to re-run the script.)


When the script has finished successfully, you will have:

  • a Docker image tagged sybase:fresh
  • an empty DB in sybase_data
  • an archive of the above in sybase_data_archives/sybase_emtpy.tgz

Running Sybase


  • you have extracted sybase_empty to a convenient directory /my/sybase_data
  • if you have a set of .csv files exported from another db, you have put them into a convenient directory /my/import

Start with bind-mounts

docker run -d --name sybase --network endtoend -p 5000:5000 -v /my/sybase_data:/var/sybase -v /my/import:/import sybase:fresh    

Once Sybase has started up (check via docker logs -f sybase_container_id), you can use a tool like DBeaver to connect:

host: localhost
port: 5000
user: user1
pass: pass123

Import data

If you wish to import data from .csv files, execute the following command:

docker exec sybase_container_id bash

As a precaution, the import csv files will be truncated to 1000 rows.


Some helpful resources:

You can’t perform that action at this time.