Skip to content

Instantly share code, notes, and snippets.

@rexcze-zz
Last active August 29, 2015 13:58
Show Gist options
  • Save rexcze-zz/10293738 to your computer and use it in GitHub Desktop.
Save rexcze-zz/10293738 to your computer and use it in GitHub Desktop.
docker xspice
#running
JOB=$( sudo docker run -d -p 5901 fedora20/kde Xspice --disable-ticketing --xsession /usr/bin/startkde :1 --port 5901)
PORT=$( sudo docker port $JOB 5901 | awk -F: '{ print $2 }')
remote-viewer spice://localhost:${PORT}
#run in commandline
sudo docker run -i fedora20/kde /bin/bash
#commit changes
sudo docker commit `sudo docker ps|grep "fedora20/kde:latest"|awk '{ print $1}'` fedora20/kde:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment