The carta-backend running in an Ubuntu 20.04 Docker container
66
This is a carta-backend running in an Ubuntu 20.04 Docker container.
The carta-backend is started up automatically when the container starts. A suggested way to run it is as follows:
docker run -ti -p 3002:3002 -v $PWD:/zzz ajmasiaa/carta-backend:1.4.0 -port 3002 -base /zzz -root /zzz
In this example, the port value is set as 3002, and the file browser directory is chosen as the current working directory, $PWD. The name of the mapped directory mounted inside the container can be anything, here we just call it /zzz. The actual directory that you want to mount is set by the Docker -v command; $PWD in this case.
Here is a more complex example:
docker run -ti -p 5000:5000 -p 6000:6000 -p 55512:55512 -v /home/carta/images:/basefolder -v /home/carta:/rootfolder ajmasiaa/carta-backend:1.4.0 -port 5000 -fport 6000 -grpc_port 55512 -base /basefolder -root /rootfolder -threads 8 -omp_threads 16
Here the backend port is set to 5000, the frontend port is set to 6000, and the grpc_port is set to 55512.
The file-browser directory is set to /home/carta/images. The optional "root" setting means the file browser can not navigate to any directories shallower than /home/carta.
The threads and omp_threads demonstrate that any of the normal "carta_backend" flags can be provided.
Content type
Image
Digest
Size
351.4 MB
Last updated
about 6 years ago
docker pull cartavis/carta-backend:1.4.0