I’m very frustrated trying to do what seems to be the most basic task of deploying a percona instance using existing data files (scp’d onto data volume from local machine).
Has anybody been able to successfully accomplish this type of task? I’ve been using this for local development for a while now. My procedure with docker-cloud was as follows:
- Create stack file
db-data: image: ubuntu volumes: - /var/lib/mysql - /etc/mysql/conf.d db: image: percona:5.6 volumes_from: - db-data links: - db-data ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: some-pass MYSQL_USER: kittens MYSQL_PASSWORD: some-pass
- Create stack
- Create a linked ubuntu container to scp db data files into data volume
- Verify db data files are in correct locations by ssh-ing into linked ubuntu container
- Attempt to deploy
The percona instance never runs for more than a few seconds before exiting; nothing appears in
docker-cloud service logs db, it’s empty?
How should one approach such an issue? I’m at a loss and don’t know how to debug. Where else can I look? How can I get the container to run long enough to attach?
Thanks in advance.