# traccar-docker **Repository Path**: ygfmobile_qq_com/traccar-docker ## Basic Information - **Project Name**: traccar-docker - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-13 - **Last Updated**: 2025-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Traccar in Docker --- **This repository contains the old Traccar Docker version.** Development has moved to the main Traccar repository, where you can find the latest Docker updates: 👉 [https://github.com/traccar/traccar](https://github.com/traccar/traccar/tree/master/docker) No further development will take place here. Please use the new repository for issues, pull requests, and the latest code. **Traccar GPS Tracking System in Docker image.** Official website: DockerHub image: ![](https://img.shields.io/docker/stars/traccar/traccar) ![](https://img.shields.io/docker/pulls/traccar/traccar) Maintainer: [Maxim Zalysin](https://github.com/magna-z) ## Available tags: #### 6.X.X - **6.7.3-alpine**, **6-alpine**, **alpine**, **6.7.3**, **6.7**, **6**, **latest** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.3-alpine) - **6.7.3-debian**, **6-debian**, **6.7-debian**, **debian** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.3-debian) - **6.7.3-ubuntu**, **6-ubuntu**, **6.7-ubuntu**, **ubuntu** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.3-ubuntu) - ... - **6.7.0-alpine**, **6.7.0** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.0-alpine) - **6.7.0-debian** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.0-debian) - **6.7.0-ubuntu** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.7.0-ubuntu) #### 6.X - **6.6-alpine**, **6.6** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.6-alpine) - **6.6-debian** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.6-debian) - **6.6-ubuntu** ![](https://img.shields.io/docker/image-size/traccar/traccar/6.6-ubuntu) - ... - **6.0**, **6.0-alpine**, **6.0-debian**, **6.0-ubuntu** #### 5.X - **5.12-alpine**, **5-alpine**, **5.12**, **5** ![](https://img.shields.io/docker/image-size/traccar/traccar/5.12-alpine) - **5.12-debian**, **5-debian** ![](https://img.shields.io/docker/image-size/traccar/traccar/5.12-debian) - **5.12-ubuntu**, **5-ubuntu** ![](https://img.shields.io/docker/image-size/traccar/traccar/5.12-ubuntu) - ... - **5.0**, **5.0-alpine**, **5.0-debian**, **5.0-ubuntu** #### 4.X - **4.15**, **4.15-alpine**, **4.15-debian**, **4.15-ubuntu** - ... - **4.0**, **4.0-alpine**, **4.0-debian** #### 3.X - **3.17**, **3.17-alpine**, **3.17-debian** - **3.16**, **3.16-alpine**, **3.16-debian** ## Available multi-platform images: **Alpine based**: linux/amd64, linux/arm64 **Debian based**: linux/amd64, linux/arm64 **Ubuntu based**: linux/amd64, linux/arm64, linux/arm/v7 ## Container create example: 1. **Create work directories:** ```bash mkdir -p /opt/traccar/logs ``` 1. **Get default traccar.xml:** ```bash docker run \ --rm \ --entrypoint cat \ traccar/traccar:latest \ /opt/traccar/conf/traccar.xml > /opt/traccar/traccar.xml ``` 1. **Edit traccar.xml:** 1. **Create container:** ```bash docker run \ --name traccar \ --hostname traccar \ --detach --restart unless-stopped \ --publish 80:8082 \ --publish 5000-5150:5000-5150 \ --publish 5000-5150:5000-5150/udp \ --volume /opt/traccar/logs:/opt/traccar/logs:rw \ --volume /opt/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \ --volume /opt/traccar/data:/opt/traccar/data:rw \ traccar/traccar:latest ``` ## Database The default when executing the above `docker run` command is an internal H2 database but this should only be for basic use. The **recommended solution** for production use is to link to an external MySQL database and update the configuration `.xml`-file according to the [Traccar MySQL documentation](https://www.traccar.org/mysql/) and using the `docker run` command as-is. ## Default JVM options: - `-Xms1g` - `-Xmx1g` - `-Djava.net.preferIPv4Stack=true`