Skip to content
Wataru Ishida edited this page Sep 21, 2018 · 4 revisions

1. save original transyncd container image as transyncd:origin

You can skip this step if you already have transyncd:origin.

$ docker images
REPOSITORY                                    TAG                 IMAGE ID            CREATED             SIZE
transyncd                                     latest              0b4528f6ce7a        39 hours ago        138MB
$ docker tag transyncd:latest transyncd:origin
$ docker images
REPOSITORY                                    TAG                 IMAGE ID            CREATED             SIZE
transyncd                                     latest              0b4528f6ce7a        39 hours ago        138MB
transyncd                                     origin              0b4528f6ce7a        39 hours ago        138MB

2. prepare Dockerfile with the following contents to build container image with updated libaco.so

FROM transyncd:origin
COPY libaco-oclaro.so /lib/x86_64-linux-gnu/

3. put the updated libaco.so in the same directory as Dockerfile

$ ls
Dockerfile libaco-oclaro.so
$ cat Dockerfile
FROM transyncd:origin
COPY libaco-oclaro.so /lib/x86_64-linux-gnu/

4. run docker build

$ docker build -t transyncd .

note: don't forget last . in docker build command

5. reboot OOPTOS system

$ oopt reboot