| 157 | }; |
| 158 | |
| 159 | class Image |
| 160 | { |
| 161 | public: |
| 162 | static Try<Image> create(const JSON::Object& json); |
| 163 | |
| 164 | Option<std::vector<std::string>> entrypoint; |
| 165 | |
| 166 | Option<std::map<std::string, std::string>> environment; |
| 167 | |
| 168 | private: |
| 169 | Image(const Option<std::vector<std::string>>& _entrypoint, |
| 170 | const Option<std::map<std::string, std::string>>& _environment) |
| 171 | : entrypoint(_entrypoint), |
| 172 | environment(_environment) {} |
| 173 | }; |
| 174 | |
| 175 | // See https://docs.docker.com/engine/reference/run for a complete |
| 176 | // explanation of each option. |
no outgoing calls