0% found this document useful (0 votes)
15 views2 pages

Install Docker and CVAT on Ubuntu

Uploaded by

Pawan Verma
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Install Docker and CVAT on Ubuntu

Uploaded by

Pawan Verma
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd

Ubuntu 22.04/20.

04 (x86_64/amd64)
Open a console window.
Type commands below into the console window to install Docker and Docker
Compose.
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL [Link] -o /etc/apt/keyrings/[Link]
sudo chmod a+r /etc/apt/keyrings/[Link]

# Add the repository to Apt sources:

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/[Link]]
[Link] \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/[Link].d/[Link] > /dev/null
sudo apt-get update

# Install the Docker packages.

sudo apt-get install docker-ce docker-ce-cli [Link] docker-buildx-plugin docker-compose-


plugin

To create the docker group and add your user:


1. Create the docker group
sudo groupadd docker
2. Add your user to the docker group.
sudo usermod -aG docker $USER

# Clone CVAT source code from the github with Git.

git clone [Link]


cd cvat
#To access CVAT over a network or through a different system, export
CVAT_HOST environment variable

export CVAT_HOST=FQDN_or_YOUR-IP-ADDRESS

Run docker containers. It will take some time to download the latest
CVAT and other required images like postgres, redis, and start
containers.

docker compose up -d
You can register a user but by default, it will not have rights even to
view the list of tasks. Thus you should create a superuser.
docker exec -it cvat_server bash -ic 'python3 ~/[Link] createsuperuser'

To start the CVAT server type below command..


docker start cvat_server

Google Chrome is the only browser that is supported by CVAT. You


need to install it as well. Open Google chrome and search below
address
[Link]

Create a project with any name and upload the image or video on the
local server.

Than start annotating the process.

Once the annotation is done than download the data set according to
your requirement like yolo, xml, txt, etc

Common questions

Powered by AI

The command `docker start cvat_server` is significant in managing CVAT operations as it is used to start the CVAT server container that may have been stopped. This command ensures the resumption of services and access to tasks and annotations, maintaining the functionality of the CVAT system .

CVAT ensures data export customization by allowing users to download annotated datasets in multiple formats such as YOLO, XML, TXT, etc. This feature is important because it provides flexibility in integrating with different machine learning frameworks and workflows, ensuring broad usability across diverse project requirements .

To set up a new project in CVAT for annotation, first navigate to the CVAT web interface via Google Chrome and access it at http://localhost:8080. Then, create a new project by defining its name. Upload images or videos to the local server as required. Once files are uploaded, the annotation process can be started, allowing users to create datasets in various formats after completing their work .

Creating a superuser in CVAT is necessary because a newly registered user, by default, does not have permissions to perform critical actions, like viewing task lists. The command to create a superuser is `docker exec -it cvat_server bash -ic 'python3 ~/manage.py createsuperuser'`, which provides administrative privileges needed for complete management of tasks and user permissions in CVAT .

The addition of the Docker repository to Ubuntu's Apt sources through command-line operations involves formulating a command that echoes the repository details into a list file located within the sources.list.d directory. This is achieved with the command `echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`. This operation configures the package manager to recognize the Docker source for installations .

After installing Docker, it is necessary to add your user to the 'docker' group to allow running Docker commands without needing `sudo`. This is done by first creating the docker group with `sudo groupadd docker` and then adding your user to this group using the command `sudo usermod -aG docker $USER` .

Setting the `CVAT_HOST` environment variable allows CVAT to be accessed over a network by specifying the Fully Qualified Domain Name (FQDN) or the IP address where the CVAT server is to be accessed. This is crucial for remote access or connecting through different systems. The correct command to set this variable is `export CVAT_HOST=FQDN_or_YOUR-IP-ADDRESS` .

To start the CVAT server, use the command `docker compose up -d` which sets up the necessary Docker containers, downloading the latest CVAT and other required images like postgres and redis. Starting the server with this command is necessary as it initiates all the services required for CVAT to function properly .

Google Chrome is the only browser supported by CVAT. This restriction influences platform compatibility by limiting users to a specific browser environment, potentially affecting users who prefer or require different browsers for their workflow .

To install Docker and Docker Compose on Ubuntu 22.04/20.04, first, you need to add Docker's official GPG key using a series of commands starting with `sudo apt-get update`, followed by the installation of `ca-certificates` and `curl`. Next, create a directory for keyrings with `sudo install -m 0755 -d /etc/apt/keyrings`, and download the GPG key with `sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc`. Set permissions with `sudo chmod a+r /etc/apt/keyrings/docker.asc`. Then, add the Docker repository to Apt sources by echoing the repository details to `docker.list`. Update apt again using `sudo apt-get update`, and then install Docker components with `sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin` .

You might also like