# Upgrade Docker

# Check if both of your services (db1 and node1 are running)

sudo docker-compose --file docker-compose.yml ps
1

# Pull newest docker image

sudo docker pull a1300/testnet:latest
1

# Check your local docker images

sudo docker image ls
1

docker-compose image ls

# Make the upgrade

We keep the database sersvice db1 running and

  • stop
  • delete
  • and recreate service node1
# stop node1
sudo docker stop node1
# remove node1
sudo docker rm node1

# start node1 with the latest image
sudo docker-compose --file docker-compose.yml up --detach
1
2
3
4
5
6
7

docker-compose up detach

# Check again

sudo docker-compose --file docker-compose.yml ps
1

docker-compose ps