Changes

Jump to navigation Jump to search
448 bytes added ,  17:05, 30 May 2017
Line 67: Line 67:  
  docker login
 
  docker login
 
  docker push DOCKER_HUB_USERNAME/rpi_python:0.0.1
 
  docker push DOCKER_HUB_USERNAME/rpi_python:0.0.1
 +
 +
=== Pull Modify Commit ===
 +
 +
<nowiki>210
 +
down vote
 +
accepted
 +
 +
 +
You need to commit the changes you make to the container and then run it. Try this:
 +
 +
sudo docker pull ubuntu
 +
 +
sudo docker run ubuntu apt-get install -y ping
 +
 +
Then get the container id using this command:
 +
 +
sudo docker ps -l
 +
 +
Commit changes to the container:
 +
 +
sudo docker commit <container_id> iman/ping
 +
 +
Then run the container:
 +
 +
sudo docker run iman/ping ping www.google.com</nowiki>

Navigation menu