Skip to content

Docker - After restoring tomcat container, cannot connect to it #22

@klesgidisold

Description

@klesgidisold

Guys sorry for the continuous issues and thanks for all the support..
Docker

Client:
 Version:      1.9.0-dev
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   59c375a-dirty
 Built:        Fri Aug 14 17:11:58 UTC 2015
 OS/Arch:      linux/amd64
 Experimental: true

Server:
 Version:      1.9.0-dev
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   59c375a-dirty
 Built:        Fri Aug 14 17:11:58 UTC 2015
 OS/Arch:      linux/amd64
 Experimental: true

CRIU

Version: 1.6
GitID: v1.6-163-g231b61d

I run the following sequence

$> docker run -d --name tomcat1 tomcat:8.0
$> docker checkpoint --image-dir ~/Desktop/cr_migrations/tomcat/memory --work-dir ~/Desktop/logs/tomcat tomcat1
$> docker export tomcat1 > ~/Desktop/cr_migrations/tomcat/fs.tar
$> docker import --change "ENV PATH /usr/local/tomcat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --change "ENV LANG C.UTF-8" --change "ENV JAVA_VERSION 7u79" --change "ENV JAVA_DEBIAN_VERSION 7u79-2.5.5-1~deb8u1" --change "ENV CATALINA_HOME /usr/local/tomcat" --change "ENV TOMCAT_MAJOR 8" --change "ENV TOMCAT_VERSION 8.0.24" --change "ENV TOMCAT_TGZ_URL https://www.apache.org/dist/tomcat/tomcat-8/v8.0.24/bin/apache-tomcat-8.0.24.tar.gz" --change "CMD [\"catalina.sh\", \"run\"]" --change "EXPOSE 8080" --change "WORKDIR /usr/local/tomcat" - tomcat:kyriakos < ~/Desktop/cr_migrations/tomcat/fs.tar
$> docker create --name tomcat2 tomcat:kyriakos
$> docker restore --force=true --allow-tcp=true --allow-ext-unix=true --image-dir ~/Desktop/cr_migrations/tomcat/memory --work-dir ~/Desktop/logs/tomcat tomcat2

and I have

CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES
86bba1f8977d        tomcat:kyria        "catalina.sh run"   About a minute ago   Up About a minute   8080/tcp            tomcat2

with

        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "IPAddress": "172.17.0.10",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null

When I type 172.17.0.10:8080 in my browser, I cannot connect to the restored container.

Thanks

Edit: I also tried to C/R with the default actions

$> docker checkpoint tomcat1
$> docker restore tomcat1

and I had the same results.
In addition, if it helps, when I do docker top tomcat2 I receive

Error response from daemon: [8] System error: open /sys/fs/cgroup/devices/docker/dfae7ff5796cc879232038d6f6ef75114e710aa9e9fc0f6438fa8d4267c32313/cgroup.procs: no such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions