Editing Docker run

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 4: Line 4:
 
* <code>[[docker run --help]]</code>
 
* <code>[[docker run --help]]</code>
  
[[-i]], --interactive                    Keep STDIN open even if not attached
 
[[-t]], [[--tty]]                            Allocate a pseudo-TTY
 
 
  [[-e]] (Environment variables)
 
  [[-e]] (Environment variables)
 
  [[--env-file]]
 
  [[--env-file]]
Line 24: Line 22:
 
* <code>[[docker run alpine]]</code>
 
* <code>[[docker run alpine]]</code>
 
* <code>[[docker run ubuntu]]</code>
 
* <code>[[docker run ubuntu]]</code>
* <code>[[docker run node]]</code>
+
* <code>docker run [[-it]] alpine /bin/sh</code>
* <code>[[docker run -it]] alpine /bin/sh</code>
 
  
* <code>docker run [[--name]] your-container-name your-gitlab-registry.your-domain.com:[[5050]]/your-project/your-repo:your-tag</code>
+
* <code>docker run --name your-container-name your-gitlab-registry.your-domain.com:[[5050]]/your-project/your-repo:your-tag</code>
 
* <code>docker run 1231243.dkr.ecr.eu-central-1.amazonaws.com/your-repo:yourimage</code>
 
* <code>docker run 1231243.dkr.ecr.eu-central-1.amazonaws.com/your-repo:yourimage</code>
  
Line 45: Line 42:
 
* <code>[[docker run -d -it]] --name devtest --mount type=[[bind]],source="$(pwd)"/target,target=/app nginx:latest</code>
 
* <code>[[docker run -d -it]] --name devtest --mount type=[[bind]],source="$(pwd)"/target,target=/app nginx:latest</code>
  
Windows example:
 
docker run --hostname=localhost --mac-address=02:42:11:11:00:01 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [[--restart]]=no --label='[[org.opencontainers.image.ref.name]]=ubuntu' --label='[[org.opencontainers]].image.version=23.10' [[--runtime]]=[[runc]] -t -d [[ubuntu:rolling]]
 
  
 
=== [[Logstash]] ===
 
=== [[Logstash]] ===
Line 80: Line 75:
  
 
== Runtime constraints on resources ==
 
== Runtime constraints on resources ==
* <code>-m [[--memory]]=""</code>
+
* <code>-m --memory=""</code>
 
* <code>--[[oom]]-kill-disable=false</code> Whether to disable OOM Killer for the container or not.
 
* <code>--[[oom]]-kill-disable=false</code> Whether to disable OOM Killer for the container or not.
 
* <code>--cpus=0.000</code>
 
* <code>--cpus=0.000</code>
Line 94: Line 89:
  
 
== Errors ==
 
== Errors ==
* <code>WARNING: The requested image's [[platform]] (linux/[[amd64]]) does not match the detected host platform ([[linux/arm64/v8]]) and no specific platform was requested</code>
+
 
* <code>[[failed: port is already allocated.]]</code>
+
WARNING: The requested image's [[platform]] (linux/[[amd64]]) does not match the detected host platform ([[linux/arm64/v8]]) and no specific platform was requested
  
 
== Activities ==
 
== Activities ==
Line 117: Line 112:
 
* <code>[[not found: manifest unknown: Requested image not found.]]</code>
 
* <code>[[not found: manifest unknown: Requested image not found.]]</code>
 
* <code>[[kubectl run]]</code>
 
* <code>[[kubectl run]]</code>
* [[URI]]
 
* [[docker run --cap-add]]
 
* [[Ctrl + p]] and [[Ctrl + q]]  to [[exit]] without stopping container
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: