How to update the Docker Engine on Photon ? #588

Closed
FlyingTom opened this Issue Jan 4, 2017 · 24 comments

Comments

Projects
None yet
@FlyingTom

Hello,

What is the procedure to update the Docker Engine on a Photon machine?

Because the latest version is 1.12.5 and the one on Photon is 1.12.1.

Thanks

@YustasSwamp

This comment has been minimized.

Show comment
Hide comment
@YustasSwamp

YustasSwamp Jan 4, 2017

Contributor

We currently have 1.12.1 version.
https://github.com/vmware/photon/blob/dev/SPECS/docker/docker.spec

Next update will be to 1.13 version, probably.

Contributor

YustasSwamp commented Jan 4, 2017

We currently have 1.12.1 version.
https://github.com/vmware/photon/blob/dev/SPECS/docker/docker.spec

Next update will be to 1.13 version, probably.

@hreidar

This comment has been minimized.

Show comment
Hide comment
@hreidar

hreidar Feb 6, 2017

Any idea when we will see 1.13?

hreidar commented Feb 6, 2017

Any idea when we will see 1.13?

@FlyingTom

This comment has been minimized.

Show comment
Hide comment
@FlyingTom

FlyingTom Feb 6, 2017

Could you please also share the procedure to update the Docker engine without having to rebuild the entire Photon image.

Thanks

Could you please also share the procedure to update the Docker engine without having to rebuild the entire Photon image.

Thanks

@munishpalmakhija

This comment has been minimized.

Show comment
Hide comment
@munishpalmakhija

munishpalmakhija Feb 13, 2017

I just upgraded docker on photon OS from 1.11 to 1.12.1 using following 3 commands

tdnf upgrade docker
systemctl daemon-reload
systemctl restart docker

I just upgraded docker on photon OS from 1.11 to 1.12.1 using following 3 commands

tdnf upgrade docker
systemctl daemon-reload
systemctl restart docker

@FlyingTom

This comment has been minimized.

Show comment
Hide comment
@FlyingTom

FlyingTom Feb 15, 2017

good to know, waiting the support for the version 1.13 ... :)

good to know, waiting the support for the version 1.13 ... :)

@thomsonac

This comment has been minimized.

Show comment
Hide comment
@thomsonac

thomsonac Feb 21, 2017

Any estimated date for 1.13 (presumably 1.13.1)?

Any estimated date for 1.13 (presumably 1.13.1)?

@thomsonac

This comment has been minimized.

Show comment
Hide comment
@thomsonac

thomsonac Mar 3, 2017

I was successfully able to swap out the binaries to upgrade to 1.13.1 but naturally tdnf didn't realize the change and I'd really prefer to avoid the manual step for new deployments. Any estimated date for adding 1.13.1 to the repos?

I was successfully able to swap out the binaries to upgrade to 1.13.1 but naturally tdnf didn't realize the change and I'd really prefer to avoid the manual step for new deployments. Any estimated date for adding 1.13.1 to the repos?

@aguiraf

This comment has been minimized.

Show comment
Hide comment
@aguiraf

aguiraf Mar 20, 2017

...waiting the support for newer docker version

aguiraf commented Mar 20, 2017

...waiting the support for newer docker version

@bt

This comment has been minimized.

Show comment
Hide comment
@bt

bt Mar 24, 2017

👍 Can we please get 1.13.1 to the repos ASAP?

I'm trying to use docker-compose version 3 and it's not working because it requires at least > 1.13.0.

bt commented Mar 24, 2017

👍 Can we please get 1.13.1 to the repos ASAP?

I'm trying to use docker-compose version 3 and it's not working because it requires at least > 1.13.0.

@darrenparkinson

This comment has been minimized.

Show comment
Hide comment
@darrenparkinson

darrenparkinson Mar 29, 2017

Any update on this -- I'm trying to use the splunk-format option which doesn't seem to be available until 1.13. Thanks.

Any update on this -- I'm trying to use the splunk-format option which doesn't seem to be available until 1.13. Thanks.

@ppadmavilasom

This comment has been minimized.

Show comment
Hide comment
@ppadmavilasom

ppadmavilasom Mar 29, 2017

Contributor

There are some build process changes and an upcoming release causing delays. Will follow up and provide an update today

Contributor

ppadmavilasom commented Mar 29, 2017

There are some build process changes and an upcoming release causing delays. Will follow up and provide an update today

@ppadmavilasom

This comment has been minimized.

Show comment
Hide comment
@ppadmavilasom

ppadmavilasom Mar 30, 2017

Contributor

Please use docker image from https://github.com/docker/docker/releases/tag/v1.13 I dont have an ETA on when this will be in photon repos at the moment.

Contributor

ppadmavilasom commented Mar 30, 2017

Please use docker image from https://github.com/docker/docker/releases/tag/v1.13 I dont have an ETA on when this will be in photon repos at the moment.

@darrenparkinson

This comment has been minimized.

Show comment
Hide comment
@darrenparkinson

darrenparkinson Mar 30, 2017

Thanks for the update.

Thanks for the update.

@bt

This comment has been minimized.

Show comment
Hide comment
@bt

bt Mar 30, 2017

@ppadmavilasom Thanks for the update. I believe the link should be https://github.com/docker/docker/releases/tag/v1.13.0.

Can you confirm that we can just download the image from there and do a drop-in replacement? It won't affect the stability of the Photon image (ie. no dependencies, etc.)?

I'm running this in production so that's why I'm confirming.

bt commented Mar 30, 2017

@ppadmavilasom Thanks for the update. I believe the link should be https://github.com/docker/docker/releases/tag/v1.13.0.

Can you confirm that we can just download the image from there and do a drop-in replacement? It won't affect the stability of the Photon image (ie. no dependencies, etc.)?

I'm running this in production so that's why I'm confirming.

@casualjim

This comment has been minimized.

Show comment
Hide comment
@casualjim

casualjim Mar 30, 2017

Contributor

I've been running this 17.03 series on a photon vm for a while
https://github.com/docker/docker/releases/tag/v17.03.1-ce

I install with this

curl -L'#' https://get.docker.com/builds/Linux/x86_64/docker-17.03.1-ce.tgz | tar --strip-components=1 -C /usr/bin -xzf - 
Contributor

casualjim commented Mar 30, 2017

I've been running this 17.03 series on a photon vm for a while
https://github.com/docker/docker/releases/tag/v17.03.1-ce

I install with this

curl -L'#' https://get.docker.com/builds/Linux/x86_64/docker-17.03.1-ce.tgz | tar --strip-components=1 -C /usr/bin -xzf - 
@munishpalmakhija

This comment has been minimized.

Show comment
Hide comment
@munishpalmakhija

munishpalmakhija Mar 31, 2017

This would require to un-install existing docker on photonos , What steps did you follow for that ?

munishpalmakhija commented Mar 31, 2017

This would require to un-install existing docker on photonos , What steps did you follow for that ?

@ppadmavilasom

This comment has been minimized.

Show comment
Hide comment
@ppadmavilasom

ppadmavilasom Mar 31, 2017

Contributor

tdnf erase docker

Contributor

ppadmavilasom commented Mar 31, 2017

tdnf erase docker

@casualjim

This comment has been minimized.

Show comment
Hide comment
@casualjim

casualjim Mar 31, 2017

Contributor

I just copy the binaries over the previous ones and restart docker. Everything is statically linked so it's got no dependencies anywhere else on the system.

to do it cleanly

tdnf erase -y docker
tdnf install -y tar gzip

curl -L'#' https://get.docker.com/builds/Linux/x86_64/docker-17.03.1-ce.tgz | tar --strip-components=1 -C /usr/bin -xzf - 

groupadd -r docker

echo '[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
Requires=docker.socket

[Service]
Type=notify
ExecStart=/usr/bin/dockerd -H fd:// -s overlay2 
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target
' > /etc/systemd/system/docker.service

echo '[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker

[Install]
WantedBy=sockets.target
' > /etc/systemd/system/docker.socket

systemctl enable docker
systemctl start docker
Contributor

casualjim commented Mar 31, 2017

I just copy the binaries over the previous ones and restart docker. Everything is statically linked so it's got no dependencies anywhere else on the system.

to do it cleanly

tdnf erase -y docker
tdnf install -y tar gzip

curl -L'#' https://get.docker.com/builds/Linux/x86_64/docker-17.03.1-ce.tgz | tar --strip-components=1 -C /usr/bin -xzf - 

groupadd -r docker

echo '[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
Requires=docker.socket

[Service]
Type=notify
ExecStart=/usr/bin/dockerd -H fd:// -s overlay2 
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target
' > /etc/systemd/system/docker.service

echo '[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker

[Install]
WantedBy=sockets.target
' > /etc/systemd/system/docker.socket

systemctl enable docker
systemctl start docker
@steve-gray

This comment has been minimized.

Show comment
Hide comment
@steve-gray

steve-gray Apr 6, 2017

You forgot one line up front, if you're using the stock image: tdnf install tar

steve-gray commented Apr 6, 2017

You forgot one line up front, if you're using the stock image: tdnf install tar

@ppadmavilasom

This comment has been minimized.

Show comment
Hide comment
@ppadmavilasom

ppadmavilasom Apr 10, 2017

Contributor

photon is building docker from sources from 2.0 onwards and will be updating on a regular basis as and when upstream updates are available.

Contributor

ppadmavilasom commented Apr 10, 2017

photon is building docker from sources from 2.0 onwards and will be updating on a regular basis as and when upstream updates are available.

@fojminc

This comment has been minimized.

Show comment
Hide comment
@fojminc

fojminc Jan 8, 2018

Now I'm just updating my Photon 1.0 to 2.0. I have found that the docker version is:
Docker version 17.06.0-ce, build 02c1d87
Current official released version is 17.12.
What are your plans? I have to decide to go with manual installation or we will get the latest image in the photon repo.

fojminc commented Jan 8, 2018

Now I'm just updating my Photon 1.0 to 2.0. I have found that the docker version is:
Docker version 17.06.0-ce, build 02c1d87
Current official released version is 17.12.
What are your plans? I have to decide to go with manual installation or we will get the latest image in the photon repo.

@jghartin2008

This comment has been minimized.

Show comment
Hide comment
@jghartin2008

jghartin2008 Jan 15, 2018

I too want to know if we are updating via repo as well. We have Photon OS servers with Auto Deploy Proxy Cache containers on each of our sites. We would like to consistently pull updates from repo and not have to worry about manual installs.

I too want to know if we are updating via repo as well. We have Photon OS servers with Auto Deploy Proxy Cache containers on each of our sites. We would like to consistently pull updates from repo and not have to worry about manual installs.

@ppadmavilasom

This comment has been minimized.

Show comment
Hide comment
@ppadmavilasom

ppadmavilasom Jan 16, 2018

Contributor

Photon's intent is to update docker when new versions are available. However, the ETA will be affected by other ongoing work. CVEs if any will be addressed with priority. You can send a PR and photon will be glad to add it if urgent.

Contributor

ppadmavilasom commented Jan 16, 2018

Photon's intent is to update docker when new versions are available. However, the ETA will be affected by other ongoing work. CVEs if any will be addressed with priority. You can send a PR and photon will be glad to add it if urgent.

@jnovack

This comment has been minimized.

Show comment
Hide comment
@jnovack

jnovack Apr 8, 2018

Contributor

photon is building docker from sources from 2.0 onwards and will be updating on a regular basis as and when upstream updates are available.

@ppadmavilasom There have been 3 release versions of Docker pushed upstream since 17.06 was added to the OS.

Is it likely we will see an update soon?

Contributor

jnovack commented Apr 8, 2018

photon is building docker from sources from 2.0 onwards and will be updating on a regular basis as and when upstream updates are available.

@ppadmavilasom There have been 3 release versions of Docker pushed upstream since 17.06 was added to the OS.

Is it likely we will see an update soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment