Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Docker
(edit)
Revision as of 17:05, 30 May 2017
448 bytes added
,
17:05, 30 May 2017
→Create & Publish image
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>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version