Comments (7)
Also export command did not work for me.
./docker-migrate.py export /tmp/export/
Saving image docker.io/ubuntu:latest
/bin/sh: /tmp/export//images/docker.io/ubuntu-latest.tar: No such file or directory
Saving image docker.io/fedora:latest
/bin/sh: /tmp/export//images/docker.io/fedora-latest.tar: No such file or directory
Saving image docker.io/busybox:latest
/bin/sh: /tmp/export//images/docker.io/busybox-latest.tar: No such file or directory
from docker-migrate.
Hi!
I've pushed a fixed version. It fixes the help message problem. I tried to replicate your export bug on my computer, but it worked fine. Did it create the export directory on your computer?
from docker-migrate.
If I just type ./docker-migrate.py (and no parameters), then export issue still happens for me.
I think reason is that you are assuming that arguments have been passed and trying to access sys.argv[1]. But it is not there.
I think instead look for number of arguments and if minimum number of arguments are not there, then display help message.
from docker-migrate.
I can still reproduce the "No Such file or Directory Issue".
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate export /tmp/image-export/
-bash: ./docker-migrate: No such file or directory
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate.py export /tmp/image-export/
Saving image docker.io/fedora:latest
/bin/sh: /tmp/image-export//images/docker.io/fedora-latest.tar: No such file or directory
Saving image docker.io/busybox:latest
/bin/sh: /tmp/image-export//images/docker.io/busybox-latest.tar: No such file or directory
I think problem here is the image name. It contains a "/". I think you will have to replace "/" with "-" or something like that. If you use "/" in file name, then it is treated as path in directory and "docker-io" directory is not present.
from docker-migrate.
You're right! Whoops, I thought I had fixed it, but I guess I missed a spot. Pushed my new fix; I think this one should work.
----- Original Message -----
From: "Vivek Goyal" [email protected]
To: "jramseye/docker-migrate" [email protected]
Cc: "jramseye" [email protected]
Sent: Tuesday, August 4, 2015 8:03:38 AM
Subject: Re: [docker-migrate] Display help and usage message (#3)
If I just type ./docker-migrate.py (and no parameters), then export issue still happens for me.
I think reason is that you are assuming that arguments have been passed and trying to access sys.argv[1]. But it is not there.
I think instead look for number of arguments and if minimum number of arguments are not there, then display help message.
Reply to this email directly or view it on GitHub:
#3 (comment)
from docker-migrate.
Are you running it as ./docker-migrate? I have to run it as ./docker-migrate.py Do we want it to work either way?
You're right. That is a bug. I'll go take a look at it. Thanks for catching it!
----- Original Message -----
From: "Vivek Goyal" [email protected]
To: "jramseye/docker-migrate" [email protected]
Cc: "jramseye" [email protected]
Sent: Tuesday, August 4, 2015 8:17:04 AM
Subject: Re: [docker-migrate] Display help and usage message (#3)
I can still reproduce the "No Such file or Directory Issue".
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate export /tmp/image-export/
-bash: ./docker-migrate: No such file or directory
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate.py export /tmp/image-export/
Saving image docker.io/fedora:latest
/bin/sh: /tmp/image-export//images/docker.io/fedora-latest.tar: No such file or directory
Saving image docker.io/busybox:latest
/bin/sh: /tmp/image-export//images/docker.io/busybox-latest.tar: No such file or directory
I think problem here is the image name. It contains a "/". I think you will have to replace "/" with "-" or something like that. If you use "/" in file name, then it is treated as path in directory and "docker-io" directory is not present.
Reply to this email directly or view it on GitHub:
#3 (comment)
from docker-migrate.
Hi! I've fixed it now. I replace / with ~ (we already use - to separate tags from image names). If you can think of any other characters we'll need to parse out, please let me know! It doesn't seem to change the final image name when we reimport, which is good. I've pushed my fix.
----- Original Message -----
From: "Vivek Goyal" [email protected]
To: "jramseye/docker-migrate" [email protected]
Cc: "jramseye" [email protected]
Sent: Tuesday, August 4, 2015 8:17:04 AM
Subject: Re: [docker-migrate] Display help and usage message (#3)
I can still reproduce the "No Such file or Directory Issue".
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate export /tmp/image-export/
-bash: ./docker-migrate: No such file or directory
[root@vm2-f22 rhvgoyal-docker-migrate]# ./docker-migrate.py export /tmp/image-export/
Saving image docker.io/fedora:latest
/bin/sh: /tmp/image-export//images/docker.io/fedora-latest.tar: No such file or directory
Saving image docker.io/busybox:latest
/bin/sh: /tmp/image-export//images/docker.io/busybox-latest.tar: No such file or directory
I think problem here is the image name. It contains a "/". I think you will have to replace "/" with "-" or something like that. If you use "/" in file name, then it is treated as path in directory and "docker-io" directory is not present.
Reply to this email directly or view it on GitHub:
#3 (comment)
from docker-migrate.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-migrate.