Changes
Jump to navigation
Jump to search
← Older edit
Docker
(edit)
Revision as of 09:06, 12 October 2021
47 bytes removed
,
09:06, 12 October 2021
no edit summary
Line 21:
Line 21:
First, we create container:
First, we create container:
−
$ docker run -d --name looper
--security-opt seccomp:unconfined
busybox
\
+
$ docker run -d --name looper busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
−
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
You can verify the container is running by printings its logs:
You can verify the container is running by printings its logs:
Radostin
327
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Request account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Tools
Special pages
Printable version
News
Twitter
YouTube
External resources
Github / source code
Issues / bugs
Mr. Jenkins
Open Hub
OpenVZ