# Update DocuSeal to the latest version in Docker

## Using basic Docker commands:

**Step 1: Pull the Latest Image**

Use the following command to download the latest image:

```
docker pull docuseal/docuseal
```

**Step 2: Recreate the container**

- If you have an existing container, you’ll need to remove it first and then create a new one using the latest image:

  ```
  docker rm docuseal -f
  ```
- Run a new container with the latest image:

  ```
  docker run --name docuseal -p 3000:3000 -v.:/data docuseal/docuseal
  ```

## Using Docker-Compose:

If you’re using docker-compose, you can simply use the following command to recreate the container with the latest image:

```
docker-compose up --force-recreate
```