Welcome to the Linux Foundation Forum!

Lab 6.4. Container Operations with crictl: sudo crictl run container-config.json pod-config.json

Options

I am trying to run the below command and I get this error: Could you help me on it?

student@student:~$ sudo crictl run container-config.json pod-config.json
FATA[0002] connect: connect endpoint 'unix:///var/run/crio/crio.sock', make sure you are running as root and the endpoint has been started: context deadline exceeded

Answers

  • eporart
    eporart Posts: 26
    Options

    this was the solution:

    student@student:~$ sudo systemctl status crio.service
    ● crio.service - Container Runtime Interface for OCI (CRI-O)
    Loaded: loaded (/lib/systemd/system/crio.service; disabled; vendor preset:>
    Active: inactive (dead)
    Docs: https://github.com/cri-o/cri-o

    student@student:~$ sudo systemctl restart crio.service
    student@student:~$ sudo systemctl status crio.service
    ● crio.service - Container Runtime Interface for OCI (CRI-O)
    Loaded: loaded (/lib/systemd/system/crio.service; disabled; vendor preset:>
    Active: active (running) since Sat 2022-05-21 16:56:35 UTC; 3s ago
    Docs: https://github.com/cri-o/cri-o
    Main PID: 4173 (crio)
    Tasks: 8
    Memory: 49.4M
    CGroup: /system.slice/crio.service
    └─4173 /usr/bin/crio

    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.400077140Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.413033560Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.414582246Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.415637226Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.533958213Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.557335846Z" level>
    May 21 16:56:35 student crio[4173]: time="2022-05-21 16:56:35.557756276Z" level>
    May 21 16:56:35 student crio[4173]: W0521 16:56:35.566174 4173 hostport_mana>
    May 21 16:56:35 student crio[4173]: W0521 16:56:35.582969 4173 hostport_mana>
    May 21 16:56:35 student systemd[1]: Started Container Runtime Interface for OCI>
    lines 1-20/20 (END)

    student@student:~$ sudo crictl run container-config.json pod-config.json
    01f55b1fce68eda969200208f5b6f6897b3798c7677bcf38a77512ae293a178b

Categories

Upcoming Training