> For the complete documentation index, see [llms.txt](https://fulink.gitbook.io/fulink-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fulink.gitbook.io/fulink-docs/fulink-worker-installer/fulink-worker-update.md).

# FuLink Worker Update

The FuLink worker node need to be updated when a new version is released.The update procedure could be different for the docker environment and local environment.

**Make sure putting a small amount of native token(WSOL) to the worker account for sending one confirmation transaction.**

### Update in docker environment <a href="#update-in-docker-environment" id="update-in-docker-environment"></a>

Make sure you still hold your staking account and worker account. The update in docker is simple: stop the node, pull the latest image and restart the node.

1. Stop the running node in Docker:

   ```
   docker kill <container ID>
   ```

   Delete the container:

   ```
   docker rm <container ID>
   ```
2. Pull the latest FuLink image.

   ```
   docker pull fulink/fulink:latest
   ```
3. Re-launch the worker node.

   ```
   docker run --restart on-failure -d \
   --name ursula \
   -p 9151:9151 \
   -v /root/fulink:/code \
   -v /root/fulink:/home/circleci/.local/share/fulink \
   -e FULINK_KEYSTORE_PASSWORD \
   -e FULINK_OPERATOR_ETH_PASSWORD \
   fulink/fulink fulink ursula run --no-block-until-ready
   ```

### Update in local environment <a href="#update-in-local-environment" id="update-in-local-environment"></a>

The update procedure in local environment is:

1. Access to your virtual environment

   ```
   source /root/fulink-venv/bin/activate
   ```
2. Stop the running node

   ```
   screen -x fulink-worker // use this command if you run the worker node in a screen session

   press ctrl+c
   ```
3. Uninstall the old package and install the new package

   ```
   pip uninstall fulink-0.2.0-py3-none-any.whl // make sure the package name matches your installed package
      
   wget https://download.fulink.org/release/core/fulink-0.5.0-py3-none-any.whl
      
   pip install fulink-0.5.0-py3-none-any.whl
   ```
4. Verify Installation use the same command when install the first time. Check [Here](https://docs.nulink.org/products/nulink_worker/worker_install#local-install)
5. Launch the node use the same config file

```
screen -S fulink-worker // use this command if you want to run the worker node in a screen session
   
fulink ursula run --no-block-until-ready
```
