Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

787
Views
Docker nfs volume mysql - How to fix: "failed to copy file info"

I created a "mysql" service with docker-compose with a nfs volume. The service does not start and gives the following error:


"failed to copy file info for /var/lib/docker/volumes/db_data/_data: failed to chown /var/lib/docker/volumes/db_data/_data: lchown /var/lib/docker/volumes/db_data/_data: operation not permitted" 


I tried with "couchdb" but it has the same problem

below is a piece of example code:

version: "3.7"
networks:
  web:
    external: true
services:
  db:
    image: mysql:5.7
    networks:
      - web
    environment:
      MYSQL_ROOT_PASSWORD: xxxxxx
      MYSQL_DATABASE: xxxxxx
      MYSQL_USER: xxxxxx
      MYSQL_PASSWORD: xxxxxx
    volumes:
      - db_data:/var/lib/mysql
volumes:
  db_data:
    driver_opts:
      type: nfs
      o: addr=x.x.x.x,nolock,soft,rw
      device: :/var/nfs/db_data

What is the correct and best way to make it work?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try to fix it from the server side! On the NFS server, check the "/etc/exports" file. You should have something like this:

/var/nfs/db_data x.x.x.x/24(rw,sync,no_subtree_check)

Try adding the "no_root_squash" option:

/var/nfs/db_data x.x.x.x/24(rw,sync,no_root_squash,no_subtree_check)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!