export-docker icon indicating copy to clipboard operation
export-docker copied to clipboard

config.lxc not present in the container directory

Open dgarros opened this issue 10 years ago • 0 comments

Hi

Thanks for this project, looks really interesting

I give it a try but it's complaining that config.lxc is not present in the container directory Is it a file docker is supposed to create on it's own ?

I'm running Docker version 1.6.2, build 7c8fca2

Any idea will be appreciated Thanks Damien

sudo ./export-container.py 5d07d443d8d7 fluentdlxc01
Exporting Docker container to a lxc container
('Docker container id: ', '5d07d443d8d7')
('New container name: ', 'fluentdlxc01')
('Full container id ', '5d07d443d8d7ad6a5524d5bbcc4146ab3ed54ba52d9126d7e8105f49c99012ca')
Container exists [/var/lib/docker/containers/5d07d443d8d7ad6a5524d5bbcc4146ab3ed54ba52d9126d7e8105f49c99012ca]? True
Traceback (most recent call last):
  File "./export-container.py", line 208, in <module>
    main()
  File "./export-container.py", line 199, in main
    container.is_valid_container()
  File "./export-container.py", line 50, in is_valid_container
    self.lxc_rootfs_exists()
  File "./export-container.py", line 64, in lxc_rootfs_exists
    lines = tuple(open(self.config, "r"))
IOError: [Errno 2] No such file or directory: '/var/lib/docker/containers/5d07d443d8d7ad6a5524d5bbcc4146ab3ed54ba52d9126d7e8105f49c99012ca/config.lxc'

Container dir

sudo ls -l /var/lib/docker/containers/5d07d443d8d7ad6a5524d5bbcc4146ab3ed54ba52d9126d7e8105f49c99012ca
total 28
-rw------- 1 root root  785 Dec  4 08:46 5d07d443d8d7ad6a5524d5bbcc4146ab3ed54ba52d9126d7e8105f49c99012ca-json.log
-rw-r--r-- 1 root root 2132 Dec  4 08:46 config.json
-rw-r--r-- 1 root root  639 Dec  4 08:46 hostconfig.json
-rw-r--r-- 1 root root   13 Dec  4 08:44 hostname
-rw-r--r-- 1 root root  175 Dec  4 08:44 hosts
-rw-r--r-- 1 root root  249 Dec  4 08:44 resolv.conf
-rw-r--r-- 1 root root   71 Dec  4 08:44 resolv.conf.hash

dgarros avatar Dec 04 '15 17:12 dgarros