Docker Community Forums

Share and learn in the Docker community.

Mysterious result after Docker Update

Hello, This is possible??

Actual behavior

Like any other day, I updated the container (docker-compose up -d) but all the records in my database created on September were deleted. I mean… this action dont delete the complete database… only the records created in this month…Also the physical changes that i made in the tables… This is the first time something like this has happened to me, i do this operation every week :frowning:

Expected behavior

  1. Add a new container Making a change in the docker-compose.yml file
  2. Run docker-compose up -d
  3. Enjoy the new container

This is my .yml file
version: ‘2.3’
services:
nginx-proxy:
container_name: sysNginxProxy
image: jwilder/nginx-proxy
restart: always
ports:
- “80:80”
- “443:443”
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /root/dockerbuild/ssl:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- ./my_custom_proxy_settings.conf:/etc/nginx/conf.d/my_custom_proxy_settings.conf
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy

sqlserver:
container_name: dbSqlserver
restart: always
image: mcr.microsoft.com/mssql/server:2019-latest
user: ‘0:0’
ports:
- 1433:1433
environment:
ACCEPT_EULA: Y
SA_PASSWORD: ${SA_PWD}
volumes:
- ~/docker/sqlserver-data:/var/opt/mssql

Additional Information

I have a container running a MySQL. Nothing happen there, everything ok. I think maybe the SqlServer container is using an old volume… But im fresh in docker :frowning:

Thanks for your time!